Page 1 of 1

Drawing an image from a SVG file

Posted: Thu Apr 29, 2021 3:41 pm
by elisacosta
Hi all,
I'm using GdPicture.NET 12.

I'd need to draw a picture reading an SVG file.
I'm using methods of TbPicImaging:

public int CreateGdPictureImageFromMetaFile(
string FilePath
)
+
public GdPictureStatus DrawGdPictureImageOnHDC(
int ImageID,
IntPtr hdc,
int DstLeft,
int DstTop,
int DstWidth,
int DstHeight,
InterpolationMode InterpolationMode
)

they seem to work but some colors present in source image are missing in the drawn.
I attached the 2 PNG files showing the original aspect and the result after having read image with CreateGdPictureImageFromMetaFile method.

Should I use a different way?

Thank you very much

Best regards

Elisa Costa

Re: Drawing an image from a SVG file

Posted: Fri Apr 30, 2021 2:42 pm
by Hugo
Hi Elisa,

Thank you for your question.

Regarding SVG files, if you are experiencing potential bugs I would suggest you try this in our latest version GdPicture V14 as it surely presents improvements for you on this.

If your issue persists please send us a ticket here and we'll look further into it:
https://orpalis.zendesk.com/hc/en-us/requests/new

Regards,
Hugo