Forums

Welcome Guest Search | Active Topics | Members

CMYK GetPixel? Options
Alan8
Posted: Monday, February 04, 2008 12:14:37 PM
Rank: Member
Groups: Member

Joined: 7/25/2007
Posts: 8
Points: 18
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
Alan8
Posted: Monday, February 04, 2008 12:28:16 PM
Rank: Member
Groups: Member

Joined: 7/25/2007
Posts: 8
Points: 18
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.
Users browsing this topic
Guest


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.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Yet Another Forum.net version 1.9.1.6 running under Cuyahoga.
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.