You are not logged in.
Pages: 1
Hello,
Trying to draw partially transparent TPngImage on TPdfDocumentGDI.VCLCanvas using TPngImage.Draw. Transparent points are black in resulting PDF. What is the correct way to put partially transparent PNG to PDF?
-Dmitry
Offline
There is no transparency support for the bitmaps of the library, yet.
This is a hard-to-implement feature at PDF level.
The workaround is
- to make manual transparency (i.e. render the part of the page in a separated bitmap, then draw it on the pdf),
- or - even better - write the image as vectorial WMF/EMF instead of bitmap.
Offline
I see. Thank you!
Offline
Pages: 1