elgatoboi / fxpdf

Automatically exported from code.google.com/p/fxpdf
0 stars 0 forks source link

PNG transparency doesn't work #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
load a transparent png image into ByteArray ....
var data : ByteArray;
var img : HPDF_Image = pdfDocument.HPDF_LoadPngImageFromByteArray( data );
pdfPage.HPDF_Page_DrawImage(img, 0, 0,  imageLoader.content.width , 
imageLoader.content.height);
pdfDocument.HPDF_SaveToStream();  
var memAttr : HPDF_MemStreamAttr = pdfDocument.stream.attr as 
HPDF_MemStreamAttr;
memAttr.buf.position = 0;
fileSave = new File();
fileSave.save(memAttr.buf, "out.pdf");
2.
3.

What is the expected output? What do you see instead?
transparent png image in the pdf, black fill instead transparency

What version of the product are you using? On what operating system?
The one from: Jul 15, 2010, Fails both on Win XP, and on Vista

Please provide any additional information below.
I did the testing with Flex 4.1 and Adobe Air 2.5.

Original issue reported on code.google.com by balazsCa...@googlemail.com on 27 Nov 2010 at 11:48