• 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: problem with [NSImage drawAtPoint:fromRect:operation:fraction:]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >problem with [NSImage drawAtPoint:fromRect:operation:fraction:] (From: Kenny Leung <email@hidden>)

  • Prev by Date: Re: /Library/Logs vs. user/Library/Logs
  • Next by Date: Re: CGPoint wrapper?
  • Previous by thread: problem with [NSImage drawAtPoint:fromRect:operation:fraction:]
  • Next by thread: Persistent Connection to Web Server in cocoa, emulating AJAX
  • Index(es):
    • Date
    • Thread