0

how to change RGB to grayscale image processing with delphi??
please give me a source code with delphi programming.
thanks
:)

2
Contributors
1
Reply
2
Views
10 Years
Discussion Span
Last Post by Duoas
0

That's a tall order. You'll have to google for some image processing components.
You might want to take a look at ImageMagick.

If you just want to convert an RGB tuple to a single grayscale value, it is something like:

function toGrayScale( red, green, blue: cardinal ): cardinal;
  begin
  result := trunc( (red * 0.3) + (green * 0.59) + (blue * 0.11) )
  end;

Good luck.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.