Re: NSImage representations
Re: NSImage representations
- Subject: Re: NSImage representations
- From: Jeremy Rotsztain <email@hidden>
- Date: Mon, 9 Jul 2007 12:24:51 -0400
I'll look into that.
For the time being, I just created a new NSImage (at a lower
resolution) and drew into it using NSImage drawInRect: fromRect:
Jeremy
On Jul 9, 2007, at 1:20 AM, Dorian Johnson wrote:
I think you'll have to do the drawing method I mentioned (lock
focus onto the NSBitmapImageRep via NSGraphicsContext) because I
don't think NSImage will immediately update its internal bitmap
store if you set the size (someone please correct me if I'm wrong -
I haven't tested that).
Dorian
On Jul 8, 2007, at 11:45 PM, Jeremy Rotsztain wrote:
I've got it working now, but have noticed some inconsistencies
when my source image is scaled. For example, only half of the
image will be 'quantized'.
Is this because the resolution of the NSBitmapImageRep that I've
created is based resolution of the source image's representation
and not it's scaled one?
_______________________________________________
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