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

Adds transparency on a GdPicture image or into an area of a GdPicture image defined by SetROI() function.

C#
public GdPictureStatus SetTransparency(
    int ImageID, 
    int TransparencyValue
);
Visual Basic
Public Function SetTransparency(
    ByVal ImageID As Integer, 
    ByVal TransparencyValue As Integer
) As GdPictureStatus
Parameters
Parameters 
Description 
ImageID 
GdPicture Image Identifier.  
TransparencyValue 
Value between -255 and 255. 255 means full opacity and -255 means full transparency.  
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.