|
-
April 9th, 2009, 10:35 PM
#4
Re: Convert CMYK image to RGB image
Give rgb value
r=
g=
b=
double R, G, B;
R = (double) r;
G = (double) g;
B = (double) b;
R = 1.0 - (R / 255.0);
G = 1.0 - (G / 255.0);
B = 1.0 - (B / 255.0);
double C, M, Y, K;
if (R < G)
K = R;
else
K = G;
if (B < K)
K = B;
C = (R - K)/(1.0 - K);
M = (G - K)/(1.0 - K);
Y = (B - K)/(1.0 - K);
C = (C * 100) + 0.5;
M = (M * 100) + 0.5;
Y = (Y * 100) + 0.5;
K = (K * 100) + 0.5;
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|