Applications, Games, Tools, User libs and useful stuff coded in PureBasic
Thorsten1867
Addict
Posts: 1366 Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany
Post
by Thorsten1867 » 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.
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.
Thorsten1867
Addict
Posts: 1366 Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany
Post
by Thorsten1867 » Mon Apr 20, 2020 4:35 pm
Update: SVG::CreateIcon()
Windows (ICO) : 16, 24, 32, 48, 64, 128, 256
MacOS (ICNS) : 16, 32, 64, 128, 256, 512, 1024
Thorsten1867
Addict
Posts: 1366 Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany
Post
by Thorsten1867 » Mon Apr 20, 2020 8:10 pm
Added: Application example "SVG2Icon.exe" or "SVGIcon.app"
Andre
PureBasic Team
Posts: 2058 Joined: Fri Apr 25, 2003 6:14 pm
Location: Germany (Saxony, Deutscheinsiedel)
Contact:
Post
by Andre » Mon Apr 20, 2020 10:16 pm
Looks very good, thank you!
Ziltch
User
Posts: 52 Joined: Sun Aug 03, 2003 12:05 am
Location: Australia
Post
by Ziltch » Tue Jun 29, 2021 6:07 am
Great work !