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

TOPIC:

Reflow 9 years 4 months ago #8118

  • zarei
  • zarei's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 3
  • Thank you received: 0
Hi. can someone help me with Reflow methods? I don't know how to use them and lets be honest, the document wont help at all...at the best, it have 5 to 10 words!
so, I want to know what are those arguments...

thanks a lot

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

Reflow 9 years 4 months ago #8128

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
lke this:
Page page = Document.GetPage(pageno);
int width = 700;
int height = page.ReflowStart(width, 2.0f, true_or_false);
if(heght > 2000) height = 2000;
Bitmap bmp = Bitmap.CreateBitmap(width + 20, height + 20, RGBA32);
bmp.erase(-1);//erase to white
page.ReflowToBmp(bmp, 10, 10);//10 pixels for both left and top margin.
//to do: display or save bmp.
bmp.recycle();
page.Close();
The following user(s) said Thank You: Юлия

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

Reflow 9 years 4 months ago #8139

  • zarei
  • zarei's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 3
  • Thank you received: 0
thanks. I have another question:
what is the role of 2.0f ?
what it means?
int height = page.ReflowStart(width, 2.0f, true_or_false);

thanks for your time

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

Reflow 9 years 4 months ago #8140

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Thank you received: 65
The following user(s) said Thank You: Юлия

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

Last edit: by poudel.

Reflow 9 years 4 months ago #8197

  • zarei
  • zarei's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 3
  • Thank you received: 0
oh...I don't know how I miss that.

thank you so much

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

  • Page:
  • 1
Powered by Kunena Forum