Drawing an image from a SVG file
Posted: Thu Apr 29, 2021 3:41 pm
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
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