screenGamma

Specifies the gamma value used for displaying PNG images.

# Metadata

Platforms: desktop, server OS: mac, windows, linux Introduced: 1.0 Security:

# Syntax

set the screenGamma to gammaValue

# Examples

set the screenGamma to 2.2

# 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"

# Tags

# See

- **keyword:** card, image - **property:** dontDither - **function:** value - **glossary:** gamma, property, PNG - **object:** image