/* avoid some xsubpp strangeness */
#define NEWLINE '\n'
+#define ICL_red(c) ((c)->rgba.r)
+#define ICL_green(c) ((c)->rgba.g)
+#define ICL_blue(c) ((c)->rgba.b)
+#define ICL_alpha(c) ((c)->rgba.a)
+
+#define ICLF_red(c) ((c)->rgba.r)
+#define ICLF_green(c) ((c)->rgba.g)
+#define ICLF_blue(c) ((c)->rgba.b)
+#define ICLF_alpha(c) ((c)->rgba.a)
+
MODULE = Imager PACKAGE = Imager::Color PREFIX = ICL_
Imager::Color
OUTPUT:
RETVAL
+int
+ICL_red(c)
+ Imager::Color c
+
+int
+ICL_green(c)
+ Imager::Color c
+
+int
+ICL_blue(c)
+ Imager::Color c
+int
+ICL_alpha(c)
+ Imager::Color c
MODULE = Imager PACKAGE = Imager::Color::Float PREFIX=ICLF_
OUTPUT:
RETVAL
+double
+ICLF_red(c)
+ Imager::Color::Float c
+
+double
+ICLF_green(c)
+ Imager::Color::Float c
+
+double
+ICLF_blue(c)
+ Imager::Color::Float c
+
+double
+ICLF_alpha(c)
+ Imager::Color::Float c
+
MODULE = Imager PACKAGE = Imager::ImgRaw PREFIX = IIM_
Imager::ImgRaw
use strict;
use vars qw($VERSION);
-$VERSION = "1.012";
+$VERSION = "1.013";
# It's just a front end to the XS creation functions.
Returns the color as a Hue/Saturation/Value/Alpha tuple.
+=item red
+
+=item green
+
+=item blue
+
+=item alpha
+
+Returns the respective component as an integer from 0 to 255.
+
=back
=head1 AUTHOR
use strict;
use vars qw($VERSION);
-$VERSION = "1.005";
+$VERSION = "1.006";
# It's just a front end to the XS creation functions.
Calling info merely dumps the relevant color to the log.
+=item red
+
+=item green
+
+=item blue
+
+=item alpha
+
+Returns the respective component as a floating point value typically
+from 0 to 1.0.
+
=back
=head1 AUTHOR