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

TOPIC:

How to get Bitmap annotation after added 10 years 3 months ago #4898

  • el3ony
  • el3ony's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 16
  • Thank you received: 0
Hi

I want to get a bitmap after I added bitmap by using page.AddAnnotBitmap(bmAddnot, true, rect);
Is there a way to archive this or I have to save it manually in sdcard ?

Thanks

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

How to get Bitmap annotation after added 10 years 3 months ago #4900

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
like this:
Page.AddAnnotBitmap(...);
Annotation annot = Page.GetAnnot(Page.GetAnnotCount() - 1);

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

Last edit: by .

How to get Bitmap annotation after added 10 years 3 months ago #4901

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87

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

How to get Bitmap annotation after added 10 years 3 months ago #4902

  • el3ony
  • el3ony's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 16
  • Thank you received: 0
What I want isn't an annotation object I want Bitmap object after I added it. How can I retrieve bitmap from annotation object there is no method to get.

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

How to get Bitmap annotation after added 10 years 3 months ago #4907

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
plz, wait next version.
new interface:
Annotation.RenderToBmp(Bitmap) will come.

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

How to get Bitmap annotation after added 10 years 3 months ago #4915

  • el3ony
  • el3ony's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 16
  • Thank you received: 0
Hi

I cannot wait till the next release so I try to develop this on my own first.

I have a question.

I try to save a bitmap manually to sdcard after added to annotation and get a bitmap whenever I want from sdcard.

Problem is my bitmap is not place precise the bitmap annotation when pdf was zoomed.
How can I resize or transform my bitmap like addannotation did ?

You'll see the star is not overlay precisely from this attachment. The big one is bitmap annotation small one is my bitmap and width height of bitmap annotation and my bitmap is equal

Attachments:

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

Last edit: by McCloskey.
  • Page:
  • 1
  • 2
Powered by Kunena Forum