[openbeos] Re: Printing the Tracker - Rectangle Printing
- From: "Adi Oanca" <e2joseph@xxxxxxxxxx>
- To: <openbeos@xxxxxxxxxxxxx>
- Date: Sun, 10 Aug 2003 10:45:00 +0300
WHY isn't anybody answering my question?????????????????????????
> > Adi Oanca wrote on Wed, 6 Aug 2003 15:27:19 +0300:
> > > Has anyone tried to print 2 a view with rectangles side by side at
> high
> > > dpi(s)?
> > >
> > > Do they get a small space between them on papaer?
> >
> > Likely, the BeOS graphics coordinate system has a goofy design
> (inappropriate for use with bitmaps). That encourages off by one things -
> so likely your rectangles are separated by one pixel and they aren't as
wide
> as you think. It also depends on the pen size used to draw the
rectangles -
> a thick enough pen will hide the gap.
> >
> > - Alex
>
> Sorry, I forgot to tell you to resize the window first! :-)
>
> Here, use these settings and please tell me what you see.
> Not that, theoreticaly, on a 1200dpi printer, the rectangles should be
> side by side(no white space gap)!
> //=========
> clsMainWindow::clsMainWindow(const char *uWindowTitle)
> :
> BWindow(
> BRect(64, 64, 320, 350),
> uWindowTitle,
> B_TITLED_WINDOW,
> 0 )
> {
> coord.Set(30.0, 30.0, 60.4999, 120.0);
> view0 = new clsViewOne( coord, NULL,
> B_FOLLOW_TOP_BOTTOM | B_FOLLOW_LEFT_RIGHT,
> B_WILL_DRAW);
> view0->SetPenSize( 0.0 );
>
> coord.Set(60.5001, 30.0, 90.0, 120.0);
> view1 = new clsViewOne( coord, NULL,
> B_FOLLOW_TOP_BOTTOM | B_FOLLOW_RIGHT,
> B_WILL_DRAW);
> view1->SetPenSize( 0.0 );
>
> AddChild( view0 );
> AddChild( view1 );
> }
> //===========
> void clsViewOne::Draw(BRect updateRect){
> StrokeRect(Bounds());
> }
> //=======
>
> Note: take a window a hoover it over this one to get a clean redraw!
>
>
>
- Follow-Ups:
- [openbeos] Re: Printing the Tracker - Rectangle Printing
- From: Alexander G. M. Smith
- References:
- [openbeos] Re: Printing the Tracker - Rectangle Printing
- From: Alexander G. M. Smith
- [openbeos] Re: Printing the Tracker - Rectangle Printing
- From: Adi Oanca
Other related posts:
- » [openbeos] Re: Printing the Tracker - Rectangle Printing
- » [openbeos] Re: Printing the Tracker - Rectangle Printing
- » [openbeos] Re: Printing the Tracker - Rectangle Printing
- » [openbeos] Re: Printing the Tracker - Rectangle Printing
- » [openbeos] Re: Printing the Tracker - Rectangle Printing
- » [openbeos] Re: Printing the Tracker - Rectangle Printing
- » [openbeos] Re: Printing the Tracker - Rectangle Printing
- » [openbeos] Re: Printing the Tracker - Rectangle Printing
- » [openbeos] Re: Printing the Tracker - Rectangle Printing
- » [openbeos] Re: Printing the Tracker - Rectangle Printing
- » [openbeos] Re: Printing the Tracker - Rectangle Printing
- [openbeos] Re: Printing the Tracker - Rectangle Printing
- From: Alexander G. M. Smith
- [openbeos] Re: Printing the Tracker - Rectangle Printing
- From: Alexander G. M. Smith
- [openbeos] Re: Printing the Tracker - Rectangle Printing
- From: Adi Oanca