Page 1 of 1

[Module] SVG - Module (all OS)

Posted: Mon Apr 13, 2020 11:28 am
by Thorsten1867
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.

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

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

Posted: Mon Apr 20, 2020 4:35 pm
by 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)

Posted: Mon Apr 20, 2020 8:10 pm
by Thorsten1867
Added: Application example "SVG2Icon.exe" or "SVGIcon.app"

Image

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

Posted: Mon Apr 20, 2020 10:16 pm
by Andre
Looks very good, thank you! :D

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

Posted: Tue Jun 29, 2021 6:07 am
by Ziltch
Great work ! :D