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

problem with [NSImage drawAtPoint:fromRect:operation:fraction:]


  • Subject: problem with [NSImage drawAtPoint:fromRect:operation:fraction:]
  • From: Kenny Leung <email@hidden>
  • Date: Wed, 22 Oct 2008 19:54:37 -0700

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?

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


  • Follow-Ups:
    • Re: problem with [NSImage drawAtPoint:fromRect:operation:fraction:]
      • From: "Ken Ferry" <email@hidden>
  • Prev by Date: Re: Creating Toolbar Items in IB
  • Next by Date: Re: Core data one-to-many: how to set relationship for newly added 'many' objects?
  • Previous by thread: Re: CGPoint wrapper?
  • Next by thread: Re: problem with [NSImage drawAtPoint:fromRect:operation:fraction:]
  • Index(es):
    • Date
    • Thread