Re: How to draw a 1 pixel line?
Re: How to draw a 1 pixel line?
- Subject: Re: How to draw a 1 pixel line?
- From: Bertil Holmberg <email@hidden>
- Date: Wed, 25 Dec 2002 23:14:01 +0100
- Organization: MacMAS
Translating by 0.5 seems to be the general solution, but I'm at loss how
to explain why these to expressions produce the same graphical result:
[NSBezierPath strokeRect:NSMakeRect(xPos + 0.5, yPos + 0.5, 14, 14)];
NSFrameRect(NSMakeRect(xPos, yPos, 15, 15));
Is the optimized NSFrameRect() clever enough to make this adjustment by itself?
It is obviously essential always to test your interface on a TFT screen
at some point.
Regards,
Bertil
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.