Capturing the Content of a IKImageBrowserView
Capturing the Content of a IKImageBrowserView
- Subject: Capturing the Content of a IKImageBrowserView
- From: Anthony Mittaz <email@hidden>
- Date: Wed, 09 Jan 2008 08:00:32 -0800
Hello,
I'm currently trying to capture the content of a IkImageBrowserView but the image resulting from this operation is always blank.
My code:
[MyIkImageBrowserView lockFocus];
NSBitmapImageRep *imageRep = [MyIkImageBrowserView bitmapImageRepForCachingDisplayInRect:[MyIkImageBrowserView frame]];
[MyIkImageBrowserView cacheDisplayInRect:[MyIkImageBrowserView frame] toBitmapImageRep:imageRep];
[MyIkImageBrowserView unlockFocus];
NSImage *image = [[NSImage alloc] initWithSize:sizeOfMyIkImageBrowserView];
[image addRepresentation:imageRep];
[imageViewOfTheView setImage:image];
If someone could give me a better solution i would be more than happy.
Thanks
Anthony Mittaz
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden