'Declaration
Public Overloads Function ConvertToGrayscale( _ ByVal Text As Boolean, _ ByVal Graphics As Boolean, _ ByVal Images As Boolean, _ ByVal Annotations As Boolean, _ ByVal FormFields As Boolean, _ ByVal RemoveUnusedResources As Boolean _ ) As GdPictureStatus
public GdPictureStatus ConvertToGrayscale( bool Text, bool Graphics, bool Images, bool Annotations, bool FormFields, bool RemoveUnusedResources )
public function ConvertToGrayscale( Text: Boolean; Graphics: Boolean; Images: Boolean; Annotations: Boolean; FormFields: Boolean; RemoveUnusedResources: Boolean ): GdPictureStatus;
public function ConvertToGrayscale( Text : boolean, Graphics : boolean, Images : boolean, Annotations : boolean, FormFields : boolean, RemoveUnusedResources : boolean ) : GdPictureStatus;
public: GdPictureStatus ConvertToGrayscale( bool Text, bool Graphics, bool Images, bool Annotations, bool FormFields, bool RemoveUnusedResources )
public: GdPictureStatus ConvertToGrayscale( bool Text, bool Graphics, bool Images, bool Annotations, bool FormFields, bool RemoveUnusedResources )
Parameters
- Text
- Set this parameter to true if you want to convert all text on page to grayscale, otherwise set it to false.
- Graphics
- Set this parameter to true if you want to convert all path - based graphic objects on page to grayscale, otherwise set it to false.
- Images
- Set this parameter to true if you want to convert all images on page to grayscale, otherwise set it to false.
- Annotations
- Set this parameter to true if you want to convert all annotations on page to grayscale, otherwise set it to false.
- FormFields
- Set this parameter to true if you want to convert all form fields on page to grayscale, otherwise set it to false.
- RemoveUnusedResources
- Set this parameter to true if you want to execute removal of unused resources of the end of the process.
Return Value
A member of the GdPictureStatus enumeration. If the method has been successfully followed, then the return value is GdPictureStatus.OK.
We strongly recommend always checking this status first.