←Select platform

InitAlpha Property

Summary

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

Syntax

C#
VB
Java
Objective-C
WinRT C#
C++
public bool InitAlpha { get; set; } 
Public Property InitAlpha As Boolean 
public bool InitAlpha {get; set;} 
@property (nonatomic, assign) BOOL initAlpha 
public boolean getInitAlpha() 
public void setInitAlpha(boolean value) 
             
 <br/>get_InitAlpha();<br/>set_InitAlpha(value);<br/>Object.defineProperty('InitAlpha');  
public: 
property bool InitAlpha { 
   bool get(); 
   void set (    bool ); 
} 

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.

Remarks

The default value for this property is true.

When saving 32-bit or 64-bit images, you should set this property to false if you wish to retain the alpha channel in the output file.

Example

For an example, refer to CodecsOptions.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Codecs Assembly