All Classes |Grouped Classes |Index

Class CL_Image

Image class. More...

Derived from:

None

Derived by:

None

Group:

2D (Display)

#include <ClanLib/display.h>

Class Members:

Construction:

CL_Image

Constructs a null image.


Attributes:

is_null

Returns true if the image is not properly constructed.

get_scale_x

Returns x scale.

get_scale_y

Returns y scale.

get_alpha

Returns current alpha.

get_color

Returns current color.

get_alignment

Returns translation hot-spot.

get_size

Get Size.

get_width

Return the width of the image.

get_height

Return the height of the image.


Operators:

operator==

Equality operator.

operator!=

Inequality operator.

operator<

Less than operator.


Operations:

draw

Draw image on graphic context.

set_scale

Set scale for x and y directions individually.

set_alpha

Sets transparency.

set_color

Sets the color.

set_alignment

Sets translation hotspot.