• 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
Re: I want ALL my tiff pixels
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: I want ALL my tiff pixels


  • Subject: Re: I want ALL my tiff pixels
  • From: Stéphane Sudre <email@hidden>
  • Date: Wed, 12 Mar 2003 17:37:32 +0100

On Wednesday, March 12, 2003, at 04:40 PM, robert l clair wrote:

#import "ExtendBitchingAboutUselesslySparseDocumentation.h"

I want *ALL* my pixels. I have (let's say) a 1200 pixel
square tiff created in Photoshop with a "resolution"
of 600 dpi. I read it into an NSImage using something like

NSImage* myImage = [[NSImage alloc] initWithContentsOfFile: @"myfile.tiff"];

I then draw it in a view with:

NSRect myRect = NSZeroRect;
NSPoint myPoint = NSZeroPoint;
myRect.size = [myImage size];
[myImage drawAtPoint: myPoint fromRect: myRect
operation: NSCompositeSourceAtop fraction: 1.0];

What prevents you from using the pixelsHigh, pixelWide info to create your NSRect?
_______________________________________________
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.
References: 
 >I want ALL my tiff pixels (From: robert l clair <email@hidden>)

  • Prev by Date: Re: Getting the amount of free space on a volume
  • Next by Date: Re: Returning nil from -init
  • Previous by thread: Re: I want ALL my tiff pixels
  • Next by thread: Re: I want ALL my tiff pixels
  • Index(es):
    • Date
    • Thread