Seite 1 von 1

[Module] SVG - Module (all OS)

Verfasst: 13.04.2020 12:35
von Thorsten1867
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.

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
Download: UseSVGImageModule.pbi

Re: [Module] SVG - Module (all OS)

Verfasst: 20.04.2020 17:35
von Thorsten1867
Update: SVG::CreateIcon()
  • Windows (ICO): 16, 24, 32, 48, 64, 128, 256
  • MacOS (ICNS): 16, 32, 64, 128, 256, 512, 1024

Re: [Module] SVG - Module (all OS)

Verfasst: 20.04.2020 18:09
von Andesdaf
Vielen Dank, könnte ich gebrauchen und schau ich mir mal genauer an :allright:

Re: [Module] SVG - Module (all OS)

Verfasst: 20.04.2020 21:08
von Thorsten1867
Added: Anwendungsbeispiel "SVG2Icon.exe" bzw. "SVGIcon.app"

Bild