You are here: GdPicture.NET > Documentation > Classes > GdPictureImaging Class > GdPictureImaging Methods > Color Palette Management > PaletteSetTransparentColor Method
logo.gif
ContentsIndexHome
PreviousUpNext
GdPictureImaging.PaletteSetTransparentColor Method

Sets a color of a palette as transparent. 

If the specified color is not present into the palette this will be added if the number of entries are lower than 256.

C#
public GdPictureStatus PaletteSetTransparentColor(
    int ImageID, 
    Color TransparentColor
);
Visual Basic
Public Function PaletteSetTransparentColor(
    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.