Product Home Class IndexDownload

CK_AdjustmentLayer

CK_Object
   |
   +----CK_Component
           |
           +----CK_Manager
                   |
                   +----CK_AdjustmentLayer

The CK_AdjustmentLayer is a manager component that can have only one child. The adjustment layer takes the width and height of its child. It first draws its child, and then applies a pixel-modifying effect to the result. Currently, the choices are to either lighten or darken the brightness of the pixels.

See Example 31 and 33.

Properties

Example of creating an adjustment layer:

CK_AdjustmentLayer *adjLayer = (CK_AdjustmentLayer *) CreateComponent(CT_AdjustmentLayer, 0,
    CT_AdjustmentType, ADJUST_LIGHTEN,
    CT_AdjustmentVal, 50,
    0);