• 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
Anti-aliasing NSImage *without* drawInRect...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Anti-aliasing NSImage *without* drawInRect...


  • Subject: Anti-aliasing NSImage *without* drawInRect...
  • From: "Ramon G. Ricca" <email@hidden>
  • Date: Sun, 2 Feb 2003 07:27:49 -0500

Hello,

I've been lurking on this list for a while, and found that most of my questions have been answered by previous posts. But...

I am writing a board game that has drag and drop pieces. The pieces are much larger than the squares, so when I use NSImage.drawInRect with a NSGraphicsContext setImageInterpolation to "high" I get a nicely drawn image that is anti-aliased. However, I need an NSImage to pass to dragImage of the pieces. I can get a copy of the piece with no problem, but it isn't anti-aliased when I call setSize to a copy. I've tried drawing to a rect outside my view and then using dataWithPDFInsideRect from my view, but if it is out of bounds, I can't seem to get any data to pass to a new NSImage. To rephrase my question more simply, I would like to take an existing NSImage, size it smaller without drawing it to the screen. I hope this hasn't been beat to death, I looked on cocoa.mamasam and didn't find anything.

Thanks for any insights,
Ramon
_______________________________________________
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: Anti-aliasing NSImage *without* drawInRect...
      • From: Nathan Day <email@hidden>
  • Prev by Date: Re: HI Guidelines: rounded text fields
  • Next by Date: Re: [Newbie] Finding the right information
  • Previous by thread: Re: [Newbie] Finding the right information
  • Next by thread: Re: Anti-aliasing NSImage *without* drawInRect...
  • Index(es):
    • Date
    • Thread