Anti-aliasing NSImage *without* drawInRect...
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.