Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF

TOPIC:

AddAnnotationBitmap to page 9 years 10 months ago #6366

  • manderin87
  • manderin87's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 21
  • Thank you received: 1
The colors of the bitmap when added as an annotation are darker that they should be? Does the annotation method change the color information when adding the bitmap?

Please Log in or Create an account to join the conversation.

AddAnnotationBitmap to page 9 years 10 months ago #6368

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
has the image alpha channel? and background of page are black?

Please Log in or Create an account to join the conversation.

AddAnnotationBitmap to page 9 years 10 months ago #6369

  • manderin87
  • manderin87's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 21
  • Thank you received: 1
The image does have an alpha channel, the background is not black. I create a bitmap, draw on it through a surface view, and add the bitmap to the page. When the page rerenders, the colors are darker than they were on the surface view.

Please Log in or Create an account to join the conversation.

AddAnnotationBitmap to page 9 years 10 months ago #6380

  • manderin87
  • manderin87's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 21
  • Thank you received: 1
This is a screen shot of the surfaceview bitmap.



This is a screen shot of the bitmap added as an annotation. Notice the colors are darker and that weird gray blob randomly shows up each time the bitmap is placed.



Any ideas on how to fix this?

thanks

Please Log in or Create an account to join the conversation.

AddAnnotationBitmap to page 9 years 10 months ago #6383

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
may you save Bitmap object as PNG file, and check it?

Please Log in or Create an account to join the conversation.

AddAnnotationBitmap to page 9 years 10 months ago #6411

  • manderin87
  • manderin87's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 21
  • Thank you received: 1
The bitmap is now saving to the file system correctly, when I add the bitmap to the pdf its too big. I tried using the code for the matrix in a previous post, but PDFReader has no PDFGetView. Do i need to create the method?

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum