Nguyen Vu Hung - 2008-02-06

Hi all,

Can anyone please show me how to

1. declare a variable of type Color with components R, G, B and alpha
2. get R, G, B, A component from a variable of type Color

?

For example,

// http://www.graphicsmagick.org/www/Magick++/Pixels.html
// http://www.graphicsmagick.org/www/Magick++/Color.html
Color green("green");

will declare variable green that is rgb( 0, 128, 0)

how can I get R, G, B and alpha from green?