screenGamma

Typeproperty
DictionaryLCS
LibraryLiveCode Script
Syntax
set the screenGamma to <gammaValue>
Summary

Specifies the gamma value used for displaying PNG images.

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

The screenGamma is a number.

RelatedKeyword: card, image
Property: dontDither
Function: value
Glossary: gamma, property, PNG
Object: image
Description

Use the screenGamma property to control the color display of PNG images.

PNG images can contain a preferred gamma setting. To display a PNG to best advantage, you may need to adjust the screenGamma property to match what the PNG expects.

Changes in the screenGamma do not apply to PNG images that are already displayed. A PNG image uses the screenGamma that was in effect when it was being decompressed for display.

Tip: To force LiveCode to re-decompress a PNG image without leaving the card, put the image into itself:

set the screenGamma to 2.2
put image "Test PNG" into image "Test PNG"

Tagsmultimedia