how to generate grayscale image

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
hakiim35
Posts: 19
Joined: 2010-02-18T07:04:01-07:00
Authentication code: 8675308

how to generate grayscale image

Post by hakiim35 »

Hello, i have a grayscale image(char pointer of pixel intensities). I want to create a grayscale Image with these values. However, PixelPacket only accepts rgb values. How can i generate a grayscale image using Magick++ ?

Thank you.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: how to generate grayscale image

Post by magick »

Set your red, green, and blue components to the same grayscale intensity.
Post Reply