GdPicture.NET.14.API
GdPicture14 Namespace / GdPictureImaging Class / GetAverageColor Method
GdPicture image identifier.





In This Topic
GetAverageColor Method (GdPictureImaging)
In This Topic
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 GdPictureColor
public GdPictureColor GetAverageColor( 
   int ImageID
)
public function GetAverageColor( 
    ImageID: Integer
): GdPictureColor; 
public function GetAverageColor( 
   ImageID : int
) : GdPictureColor;
public: GdPictureColor GetAverageColor( 
   int ImageID
) 
public:
GdPictureColor 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