>
> // set the scale, if needed (default is 72dpi)
> p->scale(scale, scale);
I think, scaling doesn't belong to resolution, doesn't it?
My scaling example:
int ww= pWindow->w();
int wh= pWindow->h();
int pw, ph;
if (!p->start_job(1))
{
p->start_page();
if (!p->printable_rect(&pw, &ph))
{
int left, top, right, bottom;
p->margins (&left, &top, &right, &bottom);
pw-= 2* left;
ph-= 2* top;
left*= 2;
top*= 2;
float sw= float(pw)/float(ww);
float sh= float(ph)/float(wh);
if (sw > sh) sw= sh;
p->scale(sw);
p->print_widget(pWindow, left, top);
}
p->end_page();
p->end_job();
}
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk