[Module] SVG - Module (all OS)
Verfasst: 13.04.2020 12:35
SVG - Module (all OS / 64Bit / DPI)
SVG - Grafiken in PureBasic benutzen
Das Modul basiert auf dem Code von VectorGraphic.pbi von STARGÅTE, der damit die ganze Vorarbeit bezüglich des Umwandelns von SVG in 'VectorDrawing'-Befehle geleistet hat.
Download: UseSVGImageModule.pbi
SVG - Grafiken in PureBasic benutzen
Das Modul basiert auf dem Code von VectorGraphic.pbi von STARGÅTE, der damit die ganze Vorarbeit bezüglich des Umwandelns von SVG in 'VectorDrawing'-Befehle geleistet hat.
Code: Alles auswählen
; 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