• 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: better image scaling?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: better image scaling?


  • Subject: Re: better image scaling?
  • From: John Nestor <email@hidden>
  • Date: Wed, 19 May 2004 16:26:28 -0400

I'm late to this thread but it seems to me that, having seen several similar threads, what folks desire is to frame and scale an image
or curve with a nice crisp 1 pixel line while at the same time drawing either curves within this frame that are nominally one pixel in width but are antialiased
or an image that does not change proportions with window or view scaling.

For example, in Building Cocoa Applications by Garfinkle and Mahoney the example application "Graph Paper" draws a curve in a scaled window .
It fails to work as above as when you scale the window by e.g. 2x vertical and 5x horizontal the curve that is drawn looks like it was drawn
with a 2 by 5 horizontal calligraphic pen. This can be worked around by changing the code in drawRect that draws the line segments making
up the curve. Coordinate lines, view frames, marker crosses, image proportions, etc can all be adjusted in drawRect to give a 1x1 (or whatever is desired) pixel width
or a non-distorted image. _______________________________________________
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: [firstPath appendBezierPath: [secondPath bezierPathByReversingPath]];
  • Next by Date: Subclassing NSArrayController arrangeObjects
  • Previous by thread: Re: better image scaling?
  • Next by thread: disk:// and help:// security problems
  • Index(es):
    • Date
    • Thread