LEADTOOLS Image File Support (Leadtools.Codecs assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
InitAlpha Property
See Also 
Leadtools.Codecs Namespace > CodecsLoadOptions Class : InitAlpha Property



Indicates whether or not to initialize the alpha channel when loading images as 32 or 64-bit.

Syntax

Visual Basic (Declaration) 
Public Property InitAlpha As Boolean
Visual Basic (Usage)Copy Code
Dim instance As CodecsLoadOptions
Dim value As Boolean
 
instance.InitAlpha = value
 
value = instance.InitAlpha
C# 
public bool InitAlpha {get; set;}
C++/CLI 
public:
property bool InitAlpha {
   bool get();
   void set (    bool value);
}

Property Value

true to set the alpha channel to ones (0xFF for 8-bit and OxFFFF for 16-bit), false to set the alpha channel to zeros.

Example

For an example, refer to CodecsOptions.

Remarks

The default value for this property has changed from false to true in LEADTOOLS v16.5.

Requirements

Target Platforms: Silverlight, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also