drawing views to images
drawing views to images
- Subject: drawing views to images
- From: Francisco Tolmasky <email@hidden>
- Date: Tue, 22 Jul 2003 07:20:42 -0700
Is it possible to render a view to a an image? Something like:
NSImage *myViewImage= [[NSImage alloc] initWithSize:
NSMakeSize(10.0,10.0)];
[myViewImage lockFocus];
[myView drawRect: NSMakeRect(0.0,0.0,10.0,10.0)];
[myVIewImage unlockFocus];
or is there something similar I could do?
Francisco Tolmasky
email@hidden
http://users.adelphia.net/~ftolmasky
_______________________________________________
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.