Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Feb 24, 2019
1 parent 1c678d0 commit 78fb6a4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/libImaging/Convert.c
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,14 @@ rgb2cmyk(UINT8* out, const UINT8* in, int xsize)
printf("max\t%.12f\n", max);
printf("k\t%.12f\n", k);
printf("k\t%.12f\n", 255.0F * k);
printf("k\t%.12f\n", (UINT8) 255.0F * k);
UINT8 i;
i = 255.0F * k;
printf("k\t%d\n", i);
i = (int) 255.0F * k;
printf("k\t%d\n", i);
i = (UINT8) 255.0F * k;
printf("k\t%d\n", i);


// C = (1-R'-K) / (1-K)
// M = (1-G'-K) / (1-K)
Expand Down

0 comments on commit 78fb6a4

Please sign in to comment.