• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to draw a 1 pixel line?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Maybe OT - Get click from sound output when I drag to Trash
  • Next by Date: Documentations on FRAMEWORKS
  • Previous by thread: Re: How to draw a 1 pixel line?
  • Next by thread: Re: How to draw a 1 pixel line?
  • Index(es):
    • Date
    • Thread