You are here: GdPicture.NET > Documentation > Classes > GdPictureImaging Class > GdPictureImaging Methods > Color Mapping & Color Profiles Management > SetColorKey Method
logo.gif
ContentsIndexHome
PreviousUpNext
GdPictureImaging.SetColorKey Method

Sets the color key (transparency range) for a specified category on a GdPicture image. 

This function sets the high and low color-key values so that a range of colors can be made transparent. 

Any color that has each of its three components (red, green, blue) between the corresponding components of the high and low color keys is made transparent.

C#
public GdPictureStatus SetColorKey(
    int ImageID, 
    Color ColorLow, 
    Color ColorHigh
);
Visual Basic
Public Function SetColorKey(
    ByVal ImageID As Integer, 
    ByVal ColorLow As Color, 
    ByVal ColorHigh As Color
) As GdPictureStatus
Parameters
Parameters 
Description 
ImageID 
GdPicture Image Identifier.  
ColorLow 
Color Object. You can build a Color Object using the ARGB() function. Specifies the low color-key value.  
ColorHigh 
Color Object. You can build a Color Object using the ARGB() function. Specifies the high color-key value.  
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.