Meet us at PRINT 19. Chicago, IL. Oct. 3 - 5.

Frame Class

Represents a base class for all image frames.

Namespace: Aurigma.GraphicsMill.Codecs
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

C#
public class Frame : PipelineElement, IImageParams

Remarks

In general, frames store the following information:

  • Bitmap. You can get it using GetBitmap() method.
  • Bitmap characteristics such as Width, Height, PixelFormat, etc. These properties will extract these data without loading entire bitmap into memory, so it works extremely fast.
Note

These data are read from file only once. After you read some property, it is cached and next time it returns pre-loaded data.

Examples

C#
using (var reader = new TiffReader(@"Images\in.tif"))
{
    for (int i = 0; i < reader.Frames.Count; i++)
    {
        using (var bitmap = reader.Frames[i].GetBitmap())
        {
            bitmap.Save(@"Images\Output\frame_" + i.ToString() + ".jpg");
        }
    }
}

Inheritance Hierarchy

Thread Safety

Static members of this type are not safe for multi-threaded operations. Instance members of this type are not safe for multi-threaded operations.

See Also

Reference