UseAlphaChannel Property

UseAlphaChannel returns or sets the alpha channel for transparency for image files.  It returns 'True' if the alpha channel is used, otherwise returns 'False'.

Syntax

object.UseAlphaChannel

object.UseAlphaChannel=UseAlphaChannel

Parameter

Type

Default

 

Description

UseAlphaChannel

Boolean

True

UseAlphaChannel is set to True to use the alpha channel for transparency, otherwise False to turn off the alpha channel

Example

This example demonstrates how to turn off the alpha channel for transparency.

layer.UseAlphaChannel = False

Used by: RasterBaseLayer object