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 instance.


Attributes:

is_null

Returns true if this object is invalid.

throw_if_null

Throw an exception if this object is invalid.

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.

set_wrap_mode

set_linear_filter

Set to true if a linear filter should be used for scaling up and down, false if a nearest-point filter should be used.

set_subimage

Upload image to sub texture.