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
Solved....My Mistake
 
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
Cookies are required to use this site. You must accept them to continue using the site. Learn more…