Re: NSImage drawInRect:fromRect:
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