# Metadata
Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 1.0 Security:
# Syntax
set the dontDither of image to {true | false}
# Examples
set the dontDither of image "Photo" to false
set the dontDither of image "Line Art" to true
# Description
Use the dontDither property to control how bitmap images such as JPEGs or PNGs behave when the stack is used on a display whose bit depth is 8 bits (256 colors) or fewer.
If the dontDither of an image is set to true, then when that image is displayed on an 8- bit screen, colors that are not part of the current color table are displayed as a solid block of the closest available color. This may create visible banding on images with continuous gradations of color.
If the dontDither of an image is false, colors that are not part of the current color table are displayed as a dither pattern made up of two or more close colors, in order to approximate the exact color. This is preferable for images such as photographs that include continuous gradations of color, but may produce speckling on images with large blocks of solid color.
The setting of the dontDither property has no effect on 24-bit or 16-bit screens.
# Tags
# See
- **keyword:** image - **property:** screenGamma, bufferHiddenImages, colorMap - **function:** screenDepth - **glossary:** property, dither, JPEG, bitmap, bit, color table, PNG, bit depth - **object:** stack, image