Leadtools Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.3.5
CreateAlphaImage Method
See Also 
Leadtools Namespace > RasterImage Class : CreateAlphaImage Method




Creates a grayscale image from this RasterImage alpha channel data.

Syntax

Visual Basic (Declaration) 
Public Function CreateAlphaImage() As RasterImage
Visual Basic (Usage)Copy Code
Dim instance As RasterImage
Dim value As RasterImage
 
value = instance.CreateAlphaImage()
C# 
public RasterImage CreateAlphaImage()
Managed Extensions for C++ 
public: RasterImage* CreateAlphaImage(); 
C++/CLI 
public:
RasterImage^ CreateAlphaImage(); 

Return Value

The newly create image, which contains the source image alpha channel data.

Remarks

Only 16-, 32-, and 64-bit images can have an alpha channel. If the source image has another color resolution, the result is an image filled with zeros.

Typically, the alpha channel contains a mask that is used for transparency.

For more information, refer to Implementing Transparency.

For more information, refer to Grayscale Images.

For more information, refer to Saving A Region.

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