MultiframeImageDocument Class
Represents a multiframe 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 MultiframeImageDocument : ImageDocument

The MultiframeImageDocument type exposes the following members.

Properties
  NameDescription
Public propertyCode exampleFrames
Gets the collection of all frames of the image.
Public propertyHeight
Gets the height of this ImageDocument in pixels.
(Inherited from ImageDocument.)
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.
(Inherited from ImageDocument.)
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
(Inherited from ImageDocument.)
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.
(Inherited from ImageDocument.)
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.)
Examples
Load and save multiframe image of any supported type.
C#
using (MultiframeImageDocument document = Document.Load<MultiframeImageDocument>(@"D:\input.gif"))
{
    // Use AddWatermark method to add watermark to all frames.

    // Use the collection of frames to add watermark to a particular frame.

    // Save changes.
    document.Save(@"D:\output.gif");
}
See Also