Search found 2 matches

by Thaje
Sun Feb 20, 2011 1:44 am
Forum: GFL SDK
Topic: Help with GetColorAt(x, y) in c#
Replies: 1
Views: 2185

Re: Help with GetColorAt(x, y) in c#

Sorry guys, I figured it out myself with a bit more research. For anyone else who wants to do this, this is the code:

Code: Select all

int color = int.Parse(g.GetColorAt(x, y).ToString());
int blue = (color/256/256) % 256;
int green = (color/256) % 256;
int red = (color) % 256;

Thanks anyway,

Thaje
by Thaje
Sun Feb 20, 2011 12:56 am
Forum: GFL SDK
Topic: Help with GetColorAt(x, y) in c#
Replies: 1
Views: 2185

Help with GetColorAt(x, y) in c#

Hello,

I am trying to create a program in c# for reading the ink content of pdf files. What I plan to do is convert the pdf to a gflax bitmap and then read each pixel to get total ink coverage. I have done everything up to getting the color at a certain pixel.

When I do:

g.GetColorAt(x, y)


It ...