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
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 mails | Author | Date |
|---|---|---|
| Anthony Mittaz | Jan 9, 17:00 | |
| Thomas Goossens | Jan 9, 17:24 | |
| Anthony Mittaz | Jan 10, 05:03 | |
| Alexander Griekspo… | Jan 10, 10:58 | |
| Thomas Goossens | Jan 10, 11:36 |






Cocoa mail archive

