How to obtain a NSImage with the content of a NSView ?
How to obtain a NSImage with the content of a NSView ?
- Subject: How to obtain a NSImage with the content of a NSView ?
- From: Quentin Mathé <email@hidden>
- Date: Sun, 31 Mar 2002 18:22:14 +0200
I want to obtain a NSImage with the content of a NSView, I have tried :
NSImage *background;
NSRect r = [aView bounds];
background = [[NSImage alloc] initWith
Data:[aView
dataWithPDFInsideRect:r]];
but background is nil when I run this code.
_______________________________________________
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.