[Module] SVG - Module (all OS)
Posted: Mon Apr 13, 2020 11:28 am
SVG - Module (all OS / 64Bit / DPI)
Using SVG images in PureBasic
The module is based on the code of VectorGraphic.pbi of STARGĂ…TE, who did all the preliminary work for converting SVG to vector drawing commands.
Download: UseSVGImageModule.pbi
Using SVG images in PureBasic
The module is based on the code of VectorGraphic.pbi of STARGĂ…TE, who did all the preliminary work for converting SVG to vector drawing commands.
Code: Select all
; SVG::Load() - similar to LoadImage()
; SVG::Resize() - similar to ResizeImage()
;
; SVG::Catch() - uses an already loaded SVG file (XML)
; SVG::CatchMemory() - uses a SVG file (XML) loaded into memory
; SVG::CatchString() - reads the SVG data from a string
;
; SVG::DrawVector() - converts a loaded SVG file to 'VectorDrawing' commands
;
; SVG::CreateIcon() - create an icon file from an SVG image