Re: Drawing an NSImage into a custom NSView
Re: Drawing an NSImage into a custom NSView
- Subject: Re: Drawing an NSImage into a custom NSView
- From: David Remahl <email@hidden>
- Date: Wed, 16 Oct 2002 05:09:31 +0200
>
All I know is that it is a quick way to just draw the entire image, and
>
that it works when I do it.
Ok. That is very interresting. I have always fonud the
NSSize imgSize = [img size];
NSRect srcRect = NSMakeRect( 0.0, 0.0, imgSize.width, imgSize.height );
[img drawImageFromRect:srcRect .....];
A real kludge. Using NSZeroRect would be nice both to performance (although
not a lot) and to my typing fingers.
/ Rgds, David
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.