You are here: GdPicture.NET > Documentation > Classes > GdPictureImaging Class > GdPictureImaging Methods > Alpha Channel and Transparency > SetTransparencyColor > SetTransparencyColor Method (Integer, Color)
logo.gif
ContentsIndexHome
PreviousUpNext
GdPictureImaging.SetTransparencyColor Method (Integer, Color)

Sets a color as transparent on a GdPicture image or into an area of a GdPicture image defined by SetROI() function. Ie: A threshold value of 90 means that all the color which are near than 90% of the color parameter will be considered.

C#
public GdPictureStatus SetTransparencyColor(
    int ImageID, 
    Color TransparentColor
);
Visual Basic
Public Function SetTransparencyColor(
    ByVal ImageID As Integer, 
    ByVal TransparentColor As Color
) As GdPictureStatus
Parameters
Parameters 
Description 
ImageID 
GdPicture Image Identifier.  
TransparentColor 
A Color Object. You can build a Color Object using the ARGB() function. Color to set as transparent.  
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.