• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSImage and scanned TIFF
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Cocoa Design Question ..
  • Next by Date: Re: How do you change the Application Icon in Interface Builder?
  • Previous by thread: How do you change the Application Icon in Interface Builder?
  • Next by thread: Adding Links to Attributed String
  • Index(es):
    • Date
    • Thread