Re: Overlaping of rectangles
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Tue, 08 Aug 2006 10:07:48 -0400
I see you've found the problem. There are kinds of graphics systems: those which include
the final point, and those which do not. Each has its own set of unique problems. In the
"coin toss" of the decision, Microsoft chose the non-inclusive model. I've worked in
both, and both will drive you nuts at the boundary conditions.
joe
On 8 Aug 2006 00:51:00 -0700, "Arpit" <arpitpmehta@xxxxxxxxx> wrote:
I got the answer Its because rectangle function draws rectangle oneJoseph M. Newcomer [MVP]
pixel up and left than the bottom right point. Drawing must be made
taking this into consideration
Bye.
Arpit wrote:
Hi Experts Of MFC,
i m drawing rectangles for each cells
in an application of the kind of Excel spreadsheet. I want to make
appear each cell of the spreadshhet like that in excel. My problem is
when i use rectangle function I get double pixel lines due to
overlapping of lines common to neighbouring cells. I dont want this .
only one line should be drawn for sides common to adjacent rectangle.
can any one help me.
--------------------
| |
| |
____________ -> Pixel 1
--------------------- ->
Pixel 2
| |
| |
---------------------
I m using SDI Application in MFC and OnPaint of Derived
class of CWnd object.
Thanks in advance
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- Follow-Ups:
- Re: Overlaping of rectangles
- From: Arpit
- Re: Overlaping of rectangles
- References:
- Overlaping of rectangles
- From: Arpit
- Re: Overlaping of rectangles
- From: Arpit
- Overlaping of rectangles
- Prev by Date: Re: ShowWindow() Has No Effect
- Next by Date: Re: Can we assign a value to a static variable in a static method.
- Previous by thread: Re: Overlaping of rectangles
- Next by thread: Re: Overlaping of rectangles
- Index(es):
Relevant Pages
|