IUP

 view release on metacpan or  search on metacpan

lib/IUP/Canvas.pod  view on Meta::CPAN


Returns the alpha component of a color in the CD library. Can be used
without an active canvas. 0 is transparent, 255 is opaque.

=head3 cdAlpha()
 
 $alpha = $canvas->cdAlpha($color);
 #or
 $alpha = IUP::Canvas->cdAlpha($color);

Macro that returns the alpha component of a color in the CD library.
Can be used without an active canvas.

=head3 cdRed()
 
 $red = $canvas->cdRed($color);
 #or
 $red = IUP::Canvas->cdRed($color);

Macro that returns the red component of a color in the CD library. Can
be used without an active canvas.

=head3 cdGreen()
 
 $green = $canvas->cdGreen($color);
 #or
 $green = IUP::Canvas->cdGreen($color);

Macro that returns the green component of a color in the CD library.
Can be used without an active canvas.

=head3 cdBlue()
 
 $blue = $canvas->cdBlue($color);
 #or
 $blue = IUP::Canvas->cdBlue($color);

Macro that returns the blue component of a color in the CD library. Can
be used without an active canvas.

=head3 cdGetColorPlanes()
 
 $bpp = $canvas->cdGetColorPlanes();

Returns a given number, for instance I<p>, which defines the number of
colors supported by the current device as I<2p>, representing the
number of bits by pixel.



( run in 0.485 second using v1.01-cache-2.11-cpan-49f99fa48dc )