GDI+: Modifying an image's R/G/B-channels

  • Thread starter Thread starter Olaf Rabbachin
  • Start date Start date
O

Olaf Rabbachin

Hi folks,

I'd like to modify an image's RGB-channels (i.e. two buttons +/- for each
channel) using a ColorMatrix.
However, I just don't find the right value(s) (coordinates) to be changed.

Any suggestions?

Thanks,
Olaf
 
Hi,

There is a vb.net and c# sample here.
http://www.bobpowell.net/image_contrast.htm

Ken
-----------------
Hi folks,

I'd like to modify an image's RGB-channels (i.e. two buttons +/- for each
channel) using a ColorMatrix.
However, I just don't find the right value(s) (coordinates) to be changed.

Any suggestions?

Thanks,
Olaf
 
Hi,

Olaf said:
I'd like to modify an image's RGB-channels (i.e. two buttons +/- for each
channel) using a ColorMatrix.
However, I just don't find the right value(s) (coordinates) to be changed.

Got it - it's the first three columns on the last row (Alpha on the fourth
column):

1 0 0 0 0
0 1 0 0 0
0 0 1 0 0
0 0 0 1 0
R G B A 1

Cheers,
Olaf
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top