lockColorMap

Typeproperty
DictionaryLCS
LibraryLiveCode Script
Syntax
set the lockColormap to {true | false}
Summary

Specifies whether changes to the color table cause the screen to be redrawn with the new color table.

Introduced1.0
OSmac, windows, linux
Platformsdesktop, server
Example
set the lockColormap to true
Values
NameTypeDescription
Value

The lockColormap is true or false. By default, the lockColorMap property is set to true on MacOS systems with 8- bit displays (the screenColors equal to 256), and to false otherwise.

RelatedKeyword: card, image, player
Property: remapColor
Command: unlock colorMap
Function: screenColors
Glossary: property, redraw, bit, color table, Mac OS, video clip, bit depth
Object: image, player
Description

Use the lockColorMap property to trade off between color accuracy and possible screen flashing when the bit depth of the screen is 8 bits (256 colors) or less.

If the lockColorMap property is set to false, newly-displayed images, videoclips, and players can change the color table used by LiveCode. This displays the colors in images and movies more accurately, but can cause screen flashing. (To minimize screen flashing when the lockColorMap is false, go to the card containing the image and then set the lockColorMap property to true.)

If the lockColorMap is true, the color table cannot be changed. In this case, if an image, video clip, or player contains a color not in the current color table, the closest existing color is substituted. This may cause banding or strange-looking displays in photographs and other images that contain a smooth gradation of colors.

This property has no effect on systems using 16-bit or 24-bit color.

Tagsui