• 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: NSImage drawInRect:fromRect:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSImage drawInRect:fromRect:


  • Subject: Re: NSImage drawInRect:fromRect:
  • From: Michael Becker <email@hidden>
  • Date: Mon, 21 Mar 2005 15:50:00 +0100

Am 18.03.2005 um 19:16 schrieb Frank Midgley:
On Mar 17, 2005, at 9:07AM, Michael Becker wrote:
Currently I am using NSImages in my application, doing a lot of drawInRect:fromRect:operation:fraction:. Since I do not really need all of the big features of NSImage, I would like to use NSBitmapImageReps. However, NSBitmapImageRep does not have any method like the one mentioned before.

Did you check the super class?

-[NSImageRep draw]
-[NSImageRep drawAtPoint:]
-[NSImageRep drawInRect:]

Or do these not have the features you need?


No, unfortunately not. I am trying to draw a certain part of the image into a certain rect in the view. NSImageRep will only allow me to draw the complete image into a rect (drawInRect:). What I was looking for would be a drawInRect:fromRect: method. But considering Ricky Sharp's comment, I think I will be able to cope happily with NSImage...


Regards,
Michael

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >NSImage drawInRect:fromRect: (From: Michael Becker <email@hidden>)
 >Re: NSImage drawInRect:fromRect: (From: Frank Midgley <email@hidden>)

  • Prev by Date: Re: Window minimum width
  • Next by Date: Re: Creating a large Cocoa project - tutorials? - OT: underscore use
  • Previous by thread: Re: NSImage drawInRect:fromRect:
  • Next by thread: How to add markers to NSTextView's NSRulerView?
  • Index(es):
    • Date
    • Thread