[Module] SVG - Module (all OS)

Hier könnt Ihr gute, von Euch geschriebene Codes posten. Sie müssen auf jeden Fall funktionieren und sollten möglichst effizient, elegant und beispielhaft oder einfach nur cool sein.
Benutzeravatar
Thorsten1867
Beiträge: 1359
Registriert: 04.02.2005 15:40
Computerausstattung: [Windows 10 x64] [PB V5.7x]
Wohnort: Kaufbeuren
Kontaktdaten:

[Module] SVG - Module (all OS)

Beitrag 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
Download of PureBasic - Module
Download of PureBasic - Programmes

[Windows 11 x64] [PB V6]

Bild
Benutzeravatar
Thorsten1867
Beiträge: 1359
Registriert: 04.02.2005 15:40
Computerausstattung: [Windows 10 x64] [PB V5.7x]
Wohnort: Kaufbeuren
Kontaktdaten:

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

Beitrag von Thorsten1867 »

Update: SVG::CreateIcon()
  • Windows (ICO): 16, 24, 32, 48, 64, 128, 256
  • MacOS (ICNS): 16, 32, 64, 128, 256, 512, 1024
Download of PureBasic - Module
Download of PureBasic - Programmes

[Windows 11 x64] [PB V6]

Bild
Andesdaf
Moderator
Beiträge: 2660
Registriert: 15.06.2008 18:22
Wohnort: Dresden

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

Beitrag von Andesdaf »

Vielen Dank, könnte ich gebrauchen und schau ich mir mal genauer an :allright:
Win11 x64 | PB 6.00 (x64)
Benutzeravatar
Thorsten1867
Beiträge: 1359
Registriert: 04.02.2005 15:40
Computerausstattung: [Windows 10 x64] [PB V5.7x]
Wohnort: Kaufbeuren
Kontaktdaten:

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

Beitrag von Thorsten1867 »

Added: Anwendungsbeispiel "SVG2Icon.exe" bzw. "SVGIcon.app"

Bild
Download of PureBasic - Module
Download of PureBasic - Programmes

[Windows 11 x64] [PB V6]

Bild
Antworten