Re: NSImage.
Re: NSImage.
- Subject: Re: NSImage.
- From: Shawn Erickson <email@hidden>
- Date: Thu, 29 Jul 2004 13:34:34 -0700
On Jul 29, 2004, at 12:23 PM, <email@hidden> wrote:
I have an image that was loaded from a file.
At the moment I am loading tif images but I'd like to make this a 16
bit grey
scale image later...
anyhow...
I want to get access to the image information...
ie. width, height, depth (bytes or bits per pixel)
and of course the address of the pixels...
So what methods of NSImage do I need.
Further i want to draw lines on top of an NSImage.
What objects and methods do I need to do this?
Make sure to read the conceptual documentation almost always linked
near the top of the class documentation for it will often answer these
types of questions.
For example from the the NSImage documentation page...
<
http://developer.apple.com/documentation/Cocoa/Conceptual/DrawImages/
index.html>
Use the conceptual documentation to understand how NSImage and its
related objects work and in this case in particular review NSImageRep
and NSBitmapImageRep.
Cocoa (and Quartz 2D) users a painter model for drawing so simply draw
your image and then draw your lines. The lines will be drawn over the
image. See the conceptual documentation on how Cocoa does drawing...
<
http://developer.apple.com/documentation/Cocoa/Conceptual/DrawViews/
index.html>
-Shawn
_______________________________________________
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: | |
| >NSImage. (From: <email@hidden>) |