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

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.