Thank You zyx about the information, and sorry about the wrong question on this 
list.

Enviado desde Yahoo Mail para Android 
 
  El mar, 7 de feb. de 2023 a la(s) 1:59, zyx<z...@gmx.us> escribió:   On Mon, 
2023-02-06 at 23:06 +0100, Famma via Podofo-users wrote:
>                canvas->StretchDraw(Rect(0, 0, pWidth*10, pHeight*10),
> xPicture->Graphic); //BrushBmp/PNG

    Hi,
either use Alphablend() or TransparentBlt(), these two support drawing
with transparency.

It should work the same as if you draw the image into a TBitmap: if
it's drawn with transparency, the litePDF should pass it to the PDF
with transparency as well. I'm pretty sure that your code snippet does
not honor the transparency, because there are TPicture/TBitmap
properties for it (set the transparent color & a bool that the color
should be used for the transparency; something like that). I'm also not
sure whether the PNG transparency had been preserved on the image load.
I guess the TPicture lost the PNG data as soon as it loaded the file,
but I'm not sure about that.

Otherwise you are right, if everything fails, you can use the PoDoFo
functions to achieve it.

By the way, the PoDoFo list has nothing to do with the litePDF project.

    Bye,
    zyx


_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users
  
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to