MASKCOLOR Property


PLBCMP GUI Only

 

The MASKCOLOR property specifies the value used to create transparent colors within the image in an IMAGELIST. The property uses the following format:

 

MASKCOLOR={value | color obj}

Note the following:

  1. MASKCOLOR may be used in CREATE, SETPROP, or GETPROP statements of an IMAGELIST object.

  2. When a masked image is drawn, the {value} or {color obj} specified is combined with the image. This combination produces transparent areas within the bitmap allowing the background color to show.

  3. If {color object} is used, it must have been previously CREATEd.

  4. The {value} may specify the color as a BGR value or a Windows system color index. The {value} is a four (4) byte integer and may be a Numeric Variable, an Expression, or a literal. When the high order byte contains a value of 0x0, the next three bytes (twenty-four bits) are interpreted as a BGR value. When the high order byte has a value of 0x80, the lower order byte is an index value into the Windows system colors. The Windows system colors are defined by the user using the control panel.

  5. This property is ignored when using the PL/B Web Server.

 

 

See Also: Object Properties, Object IO Instructions, Object Definitions

 



PL/B Language Reference LOWERCASE Property MAX Property