We're Getting Mutants in the MCU - The Loop


Specifies whether animated GIFs ignore changes in the mask data when displaying the GIF.Syntax:

set the constantMask of <image> to {true | false}


set the constantMask of image "Demo" to true

Use the constantMask property to enable display of certain [[animated GIF]] images.

Some animated GIF images use an optimization technique in which the mask data is used to hold information about differences between successive frames. When played, these GIFs can have display problems because the mask data is being used in a non-standard way. Set the constantMask to true to correct the problem with these GIFs.

Setting the constantMask to true may have some undesirable side effects--the image's appearance may be incorrect if you move it while the animation is playing, or if there is an object(glossary) underneath it--so use this property only when necessary.

If the constantMask is set to true, clicking a transparent portion of a frame may unexpectedly send messages such as mouseUp to the image(keyword), instead of the object(glossary) underneath the image(keyword). This is because when deciding whether the user has clicked a transparent pixel, LiveCode uses the masks for all the frames, rather than for the current frame, if the constantMask is true.

Setting an image's constantMask

property to true can cause problems with the image's appearance if you move it under script control while the animation is playing, or if there's an object(glossary) underneath it. Avoid setting the constantMask property to true unless necessary.

See also: mouseUp (message),image (object),filename (property),script (property),imagePixmapID (property),alwaysBuffer (property),constantMask (property),

Community content is available under CC-BY-SA unless otherwise noted.