Skip navigation.
 
mlCapturing the Content of a IKImageBrowserView
FROM : Anthony Mittaz
DATE : Wed Jan 09 17:00:32 2008

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

Related mailsAuthorDate
mlCapturing the Content of a IKImageBrowserView Anthony Mittaz Jan 9, 17:00
mlRe: Capturing the Content of a IKImageBrowserView Thomas Goossens Jan 9, 17:24
mlRe: Capturing the Content of a IKImageBrowserView Anthony Mittaz Jan 10, 05:03
mlRe: Capturing the Content of a IKImageBrowserView Alexander Griekspo… Jan 10, 10:58
mlRe: Capturing the Content of a IKImageBrowserView Thomas Goossens Jan 10, 11:36