Product Home Class IndexDownload

CK_ScaledLabel

CK_Object
   |
   +----CK_Component
           |
           +----CK_Primitive
                   |
                   +----CK_ScaledLabel

The CK_ScaledLabel displays an stretched or shrunken bitmap. The bitmap is scaled to the size of the CK_ScaledLabel component. When creating a scaled label, the CP_Width and CP_Height must be explicitly set.

Note: At the moment, 8 bit-per-pixel bitmaps cannot be scaled. This is the only restriction. All 16 or higher bit-per-pixel bitmaps can be scaled, even if they are transparent or animated.

Properties

Example of creating a scaled label:

extern CK_Bitmap *bitmap;
extern CK_Frame *frame;

CK_ScaledLabel *label1 = (CK_ScaledLabel *) CreateComponent(CT_ScaledLabel, frame,
    CP_Bitmap, bitmap,
    CP_Width, 200,
    CP_Height, 200,
    0);