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

ImageReader Class

Represents a base class for all image readers.

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

Syntax

C#
public abstract class ImageReader : PipelineElement, IImageParams

Remarks

This class is derived by all image readers. It provides the following base functionality:

  • Creating a reader on a file or stream with appropriate overload of Create() method. To check whether the reader is opened, use IsOpened property.
  • Retrieving frames via the Frames property.
  • Recognizing format of a file via the RecognizeFormat() methods.

Examples

C#
using (var reader = ImageReader.Create(@"Images\in.jpg"))
using (var rotate = new Rotate(90))
using (var writer = ImageWriter.Create(@"Images\Output\out.jpg"))
{
    Pipeline.Run(reader + rotate + writer);
}

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

Manual