You are here: GdPicture.NET > Documentation > Classes > GdPictureImaging Class > GdPictureImaging Methods > Alpha Channel and Transparency > GetAlphaChannel Method
logo.gif
ContentsIndexHome
PreviousUpNext
GdPictureImaging.GetAlphaChannel Method

Stores into an array of byte the Alpha channel of a GdPicture image.

C#
public GdPictureStatus GetAlphaChannel(
    int ImageID, 
    ref Byte arPixels, 
    int SrcLeft, 
    int SrcTop, 
    int Width, 
    int Height
);
Visual Basic
Public Function GetAlphaChannel(
    ByVal ImageID As Integer, 
    ByRef arPixels() As Byte, 
    ByVal SrcLeft As Integer, 
    ByVal SrcTop As Integer, 
    ByVal Width As Integer, 
    ByVal Height As Integer
) As GdPictureStatus
Parameters
Parameters 
Description 
ImageID 
GdPicture Image Identifier.  
arPixels 
Output parameter. Array of alpha components.  
SrcLeft 
The left source pixel of the area.  
SrcTop 
The top source pixel of the area.  
Width 
The width of the area in pixel.  
Height 
The height of the area in pixel.  
Returns

A member of the GdPictureStatus enumeration.

What do you think about this topic? Send feedback!
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.