Re: problem with [NSImage drawAtPoint:fromRect:operation:fraction:]
Re: problem with [NSImage drawAtPoint:fromRect:operation:fraction:]
- Subject: Re: problem with [NSImage drawAtPoint:fromRect:operation:fraction:]
- From: "Ken Ferry" <email@hidden>
- Date: Wed, 22 Oct 2008 23:58:48 -0700
On Wed, Oct 22, 2008 at 7:54 PM, Kenny Leung <email@hidden> wrote:
> Hi All.
>
> I just want to check with the populous to make sure I have not gone stupid
> or insane. The documentation for [NSImage
> drawAtPoint:fromRect:operation:fraction:] states:
>
> "The image content is drawn at its current resolution and is not scaled
> unless the CTM of the current coordinate system itself contains a scaling
> factor. The image is otherwise positioned and oriented using the current
> coordinate system."
>
> From what I've seen, if you specify a fromRect: that is not the full extent
> of the image, the region specified by fromRect gets **scaled to the size of
> the entire image** and then drawn.
>
> Has anyone out there had experience with this?
Yep, you're right. Please don't rely on the bug, instead use
-drawInRect:fromRect:operation:fraction: if you have a partial source rect.
Sorry! It isn't a new problem, but we are trying to correct it. Be sure to
read the 10.6 AppKit release notes when they come out.
-Ken
Cocoa Frameworks
>
>
> Thanks!
>
> -Kenny
>
> _______________________________________________
>
> 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
>
_______________________________________________
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