Leadtools.Codecs Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.12.17
AlphaChannelActiveBits Property
See Also 
Leadtools.Codecs Namespace > CodecsJpeg2000SaveOptions Class : AlphaChannelActiveBits Property




Gets or sets a value indicating the active bits for the alpha channel.

Syntax

Visual Basic (Declaration) 
Public Property AlphaChannelActiveBits As Integer
Visual Basic (Usage)Copy Code
Dim instance As CodecsJpeg2000SaveOptions
Dim value As Integer
 
instance.AlphaChannelActiveBits = value
 
value = instance.AlphaChannelActiveBits
C# 
public int AlphaChannelActiveBits {get; set;}
Managed Extensions for C++ 
public: __property int get_AlphaChannelActiveBits();
public: __property void set_AlphaChannelActiveBits( 
   int value
);
C++/CLI 
public:
property int AlphaChannelActiveBits {
   int get();
   void set (int value);
}

Return Value

The active bits for the alpha channel. Possible values are 1 and 8. If the value is 1 it means the 256 levels of the 8-bit alpha channels will be transformed into two levels of value 255 or 0, using simple threshold. The threshold value is 127, so all values gt; 127 will be set to 255 and all values lt;= 127 will be set to 0. If the value is 8, all 256 levels of the 8-bit alpha channels will be compressed. This is the default value. This option should be used on a 32-bit bitmap otherwise it has no effect.

Example

For an example, refer to CodecsJpeg2000Options.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also