dataflowg / g-image

A LabVIEW image library.
The Unlicense
6 stars 3 forks source link

g-image output defination? #13

Open RichardLGP5 opened 1 year ago

RichardLGP5 commented 1 year ago

Hi @dataflowg thanks for the library. I'm reading a SVG file and not understanding the g-image output. Can you point me to where that is defined?

image
dataflowg commented 1 year ago

Hi @RichardLGP5

When an SVG image is read by G-Image it is first rasterized, converting the vector data to a bitmap. The resulting bitmap is a standard LabVIEW picture cluster, where the image array contains pixel data in ARGB format. This cluster can then be used with LabVIEW's picture functions such as Draw Flattened Pixmap.vi. The included example SVG Scale Example.vi shows how to load and display an SVG image.

RichardLGP5 commented 1 year ago

Thank you!. That helped me figure it out. Now to see if I can convert the svg to a motion cut path for a CNC.