[Module] SVG - Module (all OS)

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

[Module] SVG - Module (all OS)

Post 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
Last edited by Thorsten1867 on Mon Apr 20, 2020 4:37 pm, edited 1 time in total.
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

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

Post by Thorsten1867 »

Update: SVG::CreateIcon()
  • Windows (ICO): 16, 24, 32, 48, 64, 128, 256
  • MacOS (ICNS): 16, 32, 64, 128, 256, 512, 1024
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

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

Post by Thorsten1867 »

Added: Application example "SVG2Icon.exe" or "SVGIcon.app"

Image
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
User avatar
Andre
PureBasic Team
PureBasic Team
Posts: 2056
Joined: Fri Apr 25, 2003 6:14 pm
Location: Germany (Saxony, Deutscheinsiedel)
Contact:

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

Post by Andre »

Looks very good, thank you! :D
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)
Ziltch
User
User
Posts: 52
Joined: Sun Aug 03, 2003 12:05 am
Location: Australia

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

Post by Ziltch »

Great work ! :D
Post Reply