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

TOPIC:

Bitmap Annotations does not show image 8 years 8 months ago #9403

  • Haktic
  • Haktic's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 16
  • Thank you received: 0
I am parsing the bitmap by following method,
private Bitmap linkIcon = BitmapFactory.decodeResource(getResources(), R.drawable.linkhighlight);
While linkhighlight is a png image in my res folder in sdk.

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

Bitmap Annotations does not show image 8 years 8 months ago #9404

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Thank you received: 65
Do you have a Premium License?

The Bitmap you create is not null?
For more info about NewImage method check this: www.radaeepdf.com/documentation/javadocs...cument.html#NewImage(Bitmap, boolean)

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

Last edit: by Davide.

Bitmap Annotations does not show image 8 years 8 months ago #9405

  • Haktic
  • Haktic's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 16
  • Thank you received: 0
Yes I have Premium license and its approved,
As I have mentioned Image first loads perfect, it makes problem when once closed the pdf and opened again. So there must be a problem in my code.
Have tried your suggested code, corrected the bitmap format but now Page.ResImage rimage = page.AddResImage(docimage);
is returning null,

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

Last edit: by Haktic.

Bitmap Annotations does not show image 8 years 8 months ago #9406

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Thank you received: 65
In your code try to remove the last page.ObjsStart();

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

Bitmap Annotations does not show image 8 years 8 months ago #9409

  • Haktic
  • Haktic's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 16
  • Thank you received: 0
I have tried removing this as well, this cause more problems, now the pdf got stucks, My Image Caching is OK, It Display's the image bitmap annotation perfectly for the first time, but now its making the blue overlay darker and darker, once i open pdf again after closing it.

The code link you have mentioned didn't work, it returns null pointer on the line i have mentioned. Please suggest any solution thanks.

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

Bitmap Annotations does not show image 8 years 8 months ago #9414

  • Haktic
  • Haktic's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 16
  • Thank you received: 0
Hi I have Professional Active license not the Premium Licensee. can that work of image annotations ?

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

Powered by Kunena Forum