Android Question Pdf Writer Lib. Image with black background?

rafaelmotaquintana

Active Member
Licensed User
I have this document generated using Pdfwriter. Everything fine.
But when adding an image, the background shows black in the document.
Image is JPG, and background is white. It shows fine in an imageview object.

this is the code segment
B4X:
    Dim imagen As Bitmap
    imagen = LoadBitmapSample(FolderImagesLogo, "test.jpg",140,100)
    imagen = f.CreateScaledBitmap(imagen, 140, 100,True)
    PDFWriter1.addImage(243,(PaperSize.A4_HEIGHT - (100) - (31/1dip)),imagen)

Have anyone had this problem before?
Thanks
 

rafaelmotaquintana

Active Member
Licensed User
I have this document generated using Pdfwriter. Everything fine.
But when adding an image, the background shows black in the document.
Image is JPG, and background is white. It shows fine in an imageview object.

this is the code segment
B4X:
    Dim imagen As Bitmap
    imagen = LoadBitmapSample(FolderImagesLogo, "test.jpg",140,100)
    imagen = f.CreateScaledBitmap(imagen, 140, 100,True)
    PDFWriter1.addImage(243,(PaperSize.A4_HEIGHT - (100) - (31/1dip)),imagen)

Have anyone had this problem before?
Thanks
Solved....My Mistake
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
have the same Problem with PNG-Files.
How did you solve the problem? :rolleyes:
You should NEVER post to existing thread. This is an 2 year old thread.

You should always start a new thread for your questions!
 
Upvote 0

JOTHA

Well-Known Member
Licensed User
Longtime User
OK ... but if everybody opens a new thread for any questions, there will be hundreds of threads for one discussion theme ... ?
 
Upvote 0
Top