SelectObject


static Handle SelectObject(Handle Device,
                           Handle Object)

This function selects a graphics object into a device context.

Parameters

Handle Device

The handle of the device context into which the object is selected.

Handle Object

The handle of the object to be selected (see table below).

Return

Handle

The handle of the previously selected object.

When the object being replaced is a region the return value is from enumeration RegionType.

Notes

When an object is replaced, the returned object handle may be later used to place the device context in its original state.

At any given time, a bitmap may be selected into only one device context.

The following object types may be selected:

Object From Functions
Bitmap
Brush
Font
Pen
Region

When the object being selected is a brush or pen, image color management is performed.

Details

Name Space IPlusPlus::Graphics
Class Gdi
Assembly IPlusPlus.WinPlus.dll