# class::draw::Image

class draw::Image
: public draw::Drawing


The Image class draws a bitmap image on the drawing bitmap.

The Image is not scaled to the drawing attributes region. It can be aligned within the drawing region using the methods defined in this class.

### Summary

Image()

const sgfx::Bitmap & bitmap
)

virtual void draw_to_scale(

const DrawingScaledAttr & attr
)

const sgfx::Bitmap * bitmap
)

### Members

##### Image(

const sgfx::Bitmap & bitmap
)

##### virtual void draw_to_scale(

const DrawingScaledAttr & attr
)

This methods draws the drawing on the specified attributes.

#### Parameters

• attr Specifies the bitmap, point and area to draw the drawing

##### Image & set_align_bottom()

Aligns the image to the bottom side of the drawing region.

##### Image & set_align_center()

Aligns the image in the center (horizontally) of the drawing region.

##### Image & set_align_left()

Aligns the image to the left side of the drawing region.

##### Image & set_align_middle()

Aligns the image to the middle (vertically) of the drawing region.

##### Image & set_align_right()

Aligns the image to the right side of the drawing region.

##### Image & set_align_top()

Aligns the image to the top side of the drawing region.

##### Image & set_bitmap(

const sgfx::Bitmap * bitmap
)

Sets the bitmap that is to be drawn as the image.

#### Parameters

• bitmap A pointer to the bitmap to draw

#### Returns

A reference to this object

X