NSImage and scanned TIFF
NSImage and scanned TIFF
- Subject: NSImage and scanned TIFF
- From: "Jeremy Petty" <email@hidden>
- Date: Thu, 13 Jun 2002 10:12:50 -0500
My application loads a 1 bit TIFF image from file (a document scan) and then
displays it in an NSImage control. The problem that I am having is that the
scanned file looks terrible (subjective but true). What can I use in order
to adjust the appearance of the image? Convert to grayscale perhaps? Any
help is appreciated. My goal is to have a clean, 'PDF-like' look. I am
using the following code:
NSImage *image;
NSString *imageFilePath = [[NSMutableString alloc] initWithString:@""];
// Establish relative path to image
imageFilePath = [[NSBundle mainBundle] bundlePath];
imageFilePath = [imageFilePath stringByDeletingLastPathComponent];
imageFilePath = [imageFilePath
stringByAppendingPathComponent:@"images/image.tif"]; //Hardcoded for testing
image = [[NSImage alloc] initWithContentsOfFile:imageFilePath];
[imageBox setImage:image];
_________________________________________________________________
Chat with friends online, try MSN Messenger:
http://messenger.msn.com
_______________________________________________
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.