Reference Guide
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 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