• 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: CGImageRef to bitmap context?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CGImageRef to bitmap context?


  • Subject: Re: CGImageRef to bitmap context?
  • From: Uli Kusterer <email@hidden>
  • Date: Mon, 13 Aug 2007 18:06:46 +0200

On 13.08.2007, at 05:30, Mike McNamara wrote:
for grabbing captures of small portions of the screen. Very handy! My app in fact works fine, except for the fact that the captured screen portion is not really a good pixel for pixel representation when I magnify it. At first I thought the capture was simply being antialiased somehow and as such tried all sorts of voodoo to eliminate that. However that appears to be a dead end.

Have you checked whether you're maybe drawing the image "between pixels"? Depending on source data (hand-drawn graphics or pixels) and destination (the same), you may need to make sure you draw on x.0 coordinates or on x.5 coordinates. If ypu pick the wrong one, each pixel will be averaged over two pixels and appear blurry, lines will seem to be 2 pixels instead of one etc.


Cheers,
-- M. Uli Kusterer
http://www.zathras.de



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >CGImageRef to bitmap context? (From: Mike McNamara <email@hidden>)

  • Prev by Date: Re: Drag with NSTableView
  • Next by Date: Re: Is SearchKit's binary index Universal?
  • Previous by thread: Re: CGImageRef to bitmap context? [SOLVED]
  • Next by thread: Any way to ensure that my app will terminate before Finder does on log out, restart, etc.?
  • Index(es):
    • Date
    • Thread