• 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
compositeToPoint ignores DPI?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

compositeToPoint ignores DPI?


  • Subject: compositeToPoint ignores DPI?
  • From: Ben Mackin <email@hidden>
  • Date: Mon, 28 Oct 2002 12:45:10 -0800

I have a tiff file that has a dpi of 209. When I run it through the
following code, I would expect the resulting tiff file to be exactly the
same. However, it makes it 72 dpi, and the quality looks god awful. How do I
preserve the dpi on my tiff?

myImage = [[NSImage alloc] initByReferencingFile:@"/mytif.tif"];

mySize = [myImage size];

[myImageToSave lockFocus];
[myImage compositeToPoint:NSMakePoint(0,0) operation:NSCompositeCopy];
[myImageToSave unlockFocus];

data = [myImageToSave TIFFRepresentation];
[data writeToFile:@"/mynewtif.tif" atomically:YES];

Thanks,
Ben
_______________________________________________
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.

  • Follow-Ups:
    • Re: compositeToPoint ignores DPI?
      • From: Ali Ozer <email@hidden>
References: 
 >Re: NSPopUpButtonCell in NSTableView - Vertical Alignment? (From: Ian Gillespie <email@hidden>)

  • Prev by Date: Re: NSFormatter how to use ?
  • Next by Date: Fun with table column identifiers, the fool speaks...
  • Previous by thread: Re: NSPopUpButtonCell in NSTableView - Vertical Alignment?
  • Next by thread: Re: compositeToPoint ignores DPI?
  • Index(es):
    • Date
    • Thread