ImageDocument Class
Represents an image where a watermark can be placed.
Inheritance Hierarchy

Namespace: GroupDocs.Watermark.Images
Assembly: GroupDocs.Watermark (in GroupDocs.Watermark.dll) Version: 19.5
Syntax
public class ImageDocument : Document

The ImageDocument type exposes the following members.

Properties
  NameDescription
Public propertyHeight
Gets the height of this ImageDocument in pixels.
Public propertyCode exampleSearchableObjects
Gets or sets the document objects that are to be included in a watermark search. Note, this property also specifies document objects which are used in image search. For more information see FindWatermarks, FindWatermarks(SearchCriteria), FindImages and FindImages(ImageSearchCriteria) methods.
(Inherited from Document.)
Public propertyWidth
Gets the width of this ImageDocument in pixels.
Methods
  NameDescription
Public methodCode exampleAddWatermark
Adds a watermark to this DocumentPart.
(Inherited from DocumentPart.)
Public methodDispose
Disposes the current instance.
(Inherited from Document.)
Protected methodDispose(Boolean)
Releases all resources used by the ImageDocument
(Overrides DocumentDispose(Boolean).)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodCode exampleFindImages
Finds all images in the document. The search is conducted in objects specified in SearchableObjects.
(Inherited from DocumentPart.)
Public methodFindImages(ImageSearchCriteria)
Finds images according to specified search criteria. The search is conducted in objects specified in SearchableObjects.
(Inherited from DocumentPart.)
Public methodFindWatermarks
Finds all possible watermarks in the document. The search is conducted in objects specified in SearchableObjects.
(Inherited from DocumentPart.)
Public methodCode exampleFindWatermarks(SearchCriteria)
Finds possible watermarks according to specified search criteria. The search is conducted in objects specified in SearchableObjects.
(Inherited from DocumentPart.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSave
Saves the document to the underlying stream.
(Overrides DocumentSave.)
Public methodSave(Stream)
Saves the document to the specified stream.
(Inherited from Document.)
Public methodSave(String)
Saves the document to the specified file location.
(Inherited from Document.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
See Also