Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about Android development and PDF

Reflow

More
IP: 192.168.0.71 11 years 3 months ago #8118 by zarei
Reflow was created by zarei
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
More
IP: 192.168.0.71 11 years 3 months ago #8128 by radaee
Replied by radaee on topic Reflow
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();
More
IP: 192.168.0.71 11 years 3 months ago #8139 by zarei
Replied by zarei on topic Reflow
thanks. I have another question:
what is the role of 2.0f ?
what it means?
Code:
int height = page.ReflowStart(width, 2.0f, true_or_false);

thanks for your time
More
IP: 192.168.0.167 11 years 3 months ago - 11 years 3 months ago #8140 by Davide
Replied by Davide on topic Reflow
Last edit: 11 years 3 months ago by poudel.
More
IP: 192.168.0.71 11 years 3 months ago #8197 by zarei
Replied by zarei on topic Reflow
oh...I don't know how I miss that.

thank you so much
Time to create page: 0.407 seconds
Powered by Kunena Forum