Hi,
I would like to replace a part of the picture to a transparent part, without anything.
Is it needed to use DrawImageTransparency ?
Call Imaging1.SetROI(10, 10, 100, 100)
Call Imaging1.SwapColorEx(0, 0, 0)The height and width values in SetROI were too large, so that nothing is done in that case.
Could you explain why SwapColorEx 0,0,0 (0 as source color, 0 as target color and 0 as threshold) produces transparency ? GDIA.PdfNewPdf(path, "", "", "", "") Then
GDIA.PdfSetMeasurementUnits (2) ' cm
ImageA = GDIa.PdfAddImageFromGdPictureImage(GDVA.GetNativeImage)
GDIB.CloseNativeImage
GDIB.SetNativeImage (GDVB.GetNativeImage)
GDIB.SwapColorEx 0, 0, 0
ImageB = GDIB.PdfAddImageFromGdPictureImage(GDIB.GetNativeImage)
Call GDIA.PdfDrawImage(ImageB, 0, 0, width, height)
Return to GdPicture [Pro] ActiveX
Users browsing this forum: No registered users and 1 guest