Hi Craig,

Are you having to open the TIFF with your own code?

It should be easier than that! Using the built in openAsPicture() method in RB I am able to open TIFFs with no problem (I believe that Quicktime might have to be installed on Windows???) . Getting CMYK data is as simple as getting a Pixel color value and then asking the color for its C,M, or Y value (as well R, G, B, H, S, & V, too)

if p is your picture then

dim cc as color
dim surf as RGBSurface
dim c, m, y as double

surf = p.RGBSurface

cc = surf.pixel(x, y)

c = cc.cyan
y = cc.yellow
m = cc.magenta

and C, M , & Y will be values from 0 to 1

White would be all of those values equal to 1, Black would be all of those values equal to 0.


Is that what you meant?

dave

On Feb 20, 2006, at 9:37 PM, Craig A. Finseth wrote:

Does anyone know of a way to get some sort of CMYKsurface object from
   a CMYK TIff image i have on disk?

1) Read it in and parse the TIFF?  (I've done this.)

2) Use another application to convert it to something that you can
read in with existing RB/QuickTime calls.

Craig

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to