• 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
Not assuming 1 point = 1 pixel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Not assuming 1 point = 1 pixel


  • Subject: Not assuming 1 point = 1 pixel
  • From: Ken Tabb <email@hidden>
  • Date: Thu, 8 Jul 2004 15:21:04 +0100

Hi folks,

does anyone have any general advice for Cocoa (/ Quartz 2D) drawing algorithms that don't assume 1 point = 1 pixel? I'd love to break that assumption, but still want the outlines of my drawn objects crispy clean.

At the moment you can draw a line with a 0.5 pixel offset to get it drawn direct on one pixel, and therefore nice thin line, vs. drawing on integer coords and getting smudged lines (where the line is 1/2 on one pixel and half on another). I'm happy breaking that 0.5 offset trick, if it means there's another way that I can guarantee crispy clean lines. Or maybe I'm missing something really obvious and have been using a hack all this while 8^)

Any clues would be most welcome!

Cheers in advance,
Ken

- - - - - - - - - -
Dr. Ken Tabb
Mac & UNIX Technical bloke (C, C++, Obj-C, Java) - Health & Human Sciences
Machine Vision & Neural Network researcher bloke - Computer Science Dept
University of Hertfordshire, UK
http://www.health.herts.ac.uk/ken/

Certified non-Microsoft Solution Provider
_______________________________________________
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.


  • Follow-Ups:
    • Re: Not assuming 1 point = 1 pixel
      • From: John Stiles <email@hidden>
    • Re: Not assuming 1 point = 1 pixel
      • From: Andreas Mayer <email@hidden>
  • Prev by Date: intersystems cache
  • Next by Date: List subject line
  • Previous by thread: intersystems cache
  • Next by thread: Re: Not assuming 1 point = 1 pixel
  • Index(es):
    • Date
    • Thread