NSImageRep help please...
NSImageRep help please...
- Subject: NSImageRep help please...
- From: email@hidden
- Date: Tue, 1 Jun 2004 20:29:05 EDT
Image-Correction Programming 101:
Could someone please help me? I am trying to load and parse a bitmapped
image in Cocoa. Let's just say I brought in a PDF, and then I wanted: 1) an
NSImageRep object formed as a bitmap array of values (RGB is fine as the native
Cocoa format, but HSB is the final numbers for drawRect, so can I use
colorCalibratedWith-type casts, or what?), 2) the image cached into an array of
coordinate-plane values, and 3) the array of values to correspond to a 300 dpi NSRange,
with 72 dpi on the NSView (which I presume is automatic due to the source
sampling requirement of 300dpi). I want to take that array of 300dpi
(x,y,R,G,B,alpha=1) values, and I want to cast them into HSB values, so I can then do the
proper drawRect on them (obviously, color correction on a loaded image).
Here's the catch. I would do it in Objective-C, but would prefer to do it in
Java, as that is how I have written the drawing (but not controller classes)
class.
So, anybody want to help me with this NSImageBitmapRep or whatever it is?
email@hidden
(916) 947-0807
- pete
_______________________________________________
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.