hi i want to show thumbnail of images in my cocoa application can u please help me to do this.
When i have a image path i show it in IKImageBrowserView using
i also want to display thumbnail without having path directly from image stream.
like in visual studio i can read whole image file as stream and with this stream display the thumbnail.
is there any method to do this?
thanks.
When i have a image path i show it in IKImageBrowserView using
Code:
MyImageObject *item;
NSString *filename = [path lastPathComponent];
/* skip '.*' */
if([filename length] > 0){
char *ch = (char*) [filename UTF8String];
if(ch)
if(ch[0] == '.')
return;
}
item = [[MyImageObject alloc] init];
[item setPath:path];
[images addObject:item];
[item release];
[imageBrowser reloadData];
//but its gives this --ImageKit Error: reloadData called in non main thread
i also want to display thumbnail without having path directly from image stream.
like in visual studio i can read whole image file as stream and with this stream display the thumbnail.
is there any method to do this?
thanks.