You are here: GdPicture.NET > Documentation > Classes > GdPictureImaging Class > GdPictureImaging Methods > Standalone Functions > GetAverageColor Method
logo.gif
ContentsIndexHome
PreviousUpNext
GdPictureImaging.GetAverageColor Method

Returns the average color for a GdPicture image or for an area of a GdPicture image defined by SetROI() function.

C#
public Color GetAverageColor(
    int ImageID
);
Visual Basic
Public Function GetAverageColor(
    ByVal ImageID As Integer
) As Color
Parameters
Parameters 
Description 
ImageID 
GdPicture Image Identifier.  
Returns

Color Object. You can build a Color Object using the ARGB() function. The average color.

Use the GetStat() function to check if this function has completed successfully.

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