GdPicture.NET Reference Guide
GetAverageColor Method (GdPictureImaging)





GdPicture14 Namespace > GdPictureImaging Class : GetAverageColor Method
GdPicture image identifier.
Returns the average color for a GdPicture image or for an area of a GdPicture image defined by SetROI() method.
Syntax
'Declaration
 
Public Function GetAverageColor( _
   ByVal ImageID As Integer _
) As Color
public Color GetAverageColor( 
   int ImageID
)
public function GetAverageColor( 
    ImageID: Integer
): Color; 
public function GetAverageColor( 
   ImageID : int
) : Color;
public: Color GetAverageColor( 
   int ImageID
) 
public:
Color GetAverageColor( 
   int ImageID
) 

Parameters

ImageID
GdPicture image identifier.

Return Value

The average color.
Remarks
Use the GetStat() method to check if this method has completed successfully.
See Also

Reference

GdPictureImaging Class
GdPictureImaging Members
SetROI Method
ResetROI Method