• 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
Pixel Drawing Program 3
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Pixel Drawing Program 3


  • Subject: Pixel Drawing Program 3
  • From: Sebastian Gomez Papiol <email@hidden>
  • Date: Sat, 15 Feb 2003 20:16:42 +0100

I understand now better how quartz print graphics on the screen and I believe I have one solution for draw one pixel paths. I explain the solution.

First of all, I moved the center of the coordinate system to (-0.5, -0.5) with the method setFrameOrigin:

Now if I paint horizontal or vertical lines with a 0.5 width the lines measures only 1 pixel in the screen.

But this solves partially my problem, since if I draw curved or inclined lines, in some cases quartz draw 2 or 4 pixels instead of 1. My question is, I can, with some trick, modify que coordinate system, adding clipping or something else for draw always lines only 1 pixel width?

Thanks again.
_______________________________________________
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: Pixel Drawing Program 3
      • From: Shawn Erickson <email@hidden>
  • Prev by Date: Re: NSImage release causing NSPrintOperation problem
  • Next by Date: Re: Image loaded/displayed at the wrong size
  • Previous by thread: Re: Image loaded/displayed at the wrong size
  • Next by thread: Re: Pixel Drawing Program 3
  • Index(es):
    • Date
    • Thread