Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
Alan8  
#1 Posted : Monday, February 4, 2008 4:14:37 AM(UTC)
Alan8

Rank: Member

Groups: Member
Joined: 7/25/2007(UTC)
Posts: 18

Thanks: 1 times
I need to look at individual pixels in a CMYK TIF image.


I load the image with:

Code:
     Aurigma.GraphicsMill.Bitmap bm;
     bm = new Aurigma.GraphicsMill.Bitmap(fileNameBox.Text);



I look at pixels with:

Code:
     Color pix;
     pix = bm.GetPixel(i, j);



But the Color class only has RGB members. How can I look at the (unconverted) CMYK values of a pixel?

Thanks,
Alan

Edited by user Tuesday, February 5, 2008 12:11:12 PM(UTC)  | Reason: Not specified

Alan8  
#2 Posted : Monday, February 4, 2008 4:28:16 AM(UTC)
Alan8

Rank: Member

Groups: Member
Joined: 7/25/2007(UTC)
Posts: 18

Thanks: 1 times
Never mind -- I found the solution:

Use Aurigma.GraphicsMill.CmykColor instead of Color:

Code:
Aurigma.GraphicsMill.CmykColor pix;



Then convert the value returned from GetPixel ():

Code:
pix = bm.GetPixel(i, j) as Aurigma.GraphicsMill.CmykColor;



This gives a Color with CMYK values.

Edited by user Tuesday, February 5, 2008 12:11:45 PM(UTC)  | Reason: Not specified

Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.