-3

this is my situation: I'm reading a color with GetPixel, and now i have to convert this to Argb using C#

the string would have to look like this: 16777215 (this is a white color)

I hope you can help me!

Note: this is not a "regular" problem and cannot be found easily on the internet.

4

1 回答 1

4

如果我正确理解了您的问题,您想获得一个Color值的 ARGB 表示,对吗?

Color x = getPixel(...); //As specified in your original post
int argb = x.ToArgb();

最好的问候安德烈亚斯

于 2015-03-22T20:45:33.103 回答