Name

FrameDimension

Synopsis

An Image is capable of supporting several different frames in a single image. This class encapsulates three different types of frame. You can get an instance of the class representing a Time-based frame (an animation), a Resolution-based frame (which allows you to extract multi-resolution versions of the image data), and a Page-based frame (to extract several pages from the image), using the static properties of those names.

The class actually wraps a Guid identifying the particular frame dimension.

You use this class in the Image.GetFrameCount() and Image.SelectActiveFrame() methods.


public sealed class FrameDimension {

// Public Constructors

   public FrameDimension(Guid guid);

// Public Static Properties

   public static FrameDimension Page{get; }

   public static FrameDimension Resolution{get; }

   public static FrameDimension Time{get; }

// Public Instance Properties

   public Guid Guid{get; }

// Public Instance Methods

   public override bool Equals(object o);  // overrides object

   public override int GetHashCode();  // overrides object

   public override string ToString();  // overrides object

}

Passed To

System.Drawing.Image.{GetFrameCount(), SelectActiveFrame()}

Get .NET Windows Forms in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.