ImageGear v26.3 - Updated
ImageGear.Core Assembly / ImageGear.Processing Namespace / ImGearRasterProcessing Class / ImageIsGray Method
Image to test.




In This Topic
    ImageIsGray Method
    In This Topic
    Returns true if either the image has GrayScale color space or its palette is gray or inverted gray.
    Syntax
    'Declaration
     
    Public Shared Function ImageIsGray( _
       ByVal page As ImGearRasterPage _
    ) As Boolean
    'Usage
     
    Dim page As ImGearRasterPage
    Dim value As Boolean
     
    value = ImGearRasterProcessing.ImageIsGray(page)
    public static bool ImageIsGray( 
       ImGearRasterPage page
    )
    public: static bool ImageIsGray( 
       ImGearRasterPage* page
    ) 
    public:
    static bool ImageIsGray( 
       ImGearRasterPage^ page
    ) 

    Parameters

    page
    Image to test.

    Return Value

    Boolean value.
    Remarks
    This method returns true if either of the two conditions are met:
    • Image has grayscale color space.
    • Image has indexed color space, and palette is either linear gray, or inverted gray.
    Example
    See Also