Table of Contents

Class MagickImageInfo

Namespace
ImageMagick
Assembly
Magick.NET-Q16-AnyCPU.dll

Class that contains basic information about an image.

public sealed class MagickImageInfo : IMagickImageInfo<ushort>, IMagickImageInfo
Inheritance
MagickImageInfo
Implements
IMagickImageInfo<ushort>
IMagickImageInfo
Inherited Members

Constructors

MagickImageInfo()

Initializes a new instance of the MagickImageInfo class.

public MagickImageInfo()

MagickImageInfo(byte[])

Initializes a new instance of the MagickImageInfo class.

public MagickImageInfo(byte[] data)

Parameters

data byte[]

The byte array to read the information from.

Exceptions

ImageMagick.MagickException

Thrown when an error is raised by ImageMagick.

MagickImageInfo(byte[], IMagickReadSettings<ushort>?)

Initializes a new instance of the MagickImageInfo class.

public MagickImageInfo(byte[] data, IMagickReadSettings<ushort>? readSettings)

Parameters

data byte[]

The byte array to read the information from.

readSettings IMagickReadSettings<ushort>

The settings to use when reading the image.

Exceptions

ImageMagick.MagickException

Thrown when an error is raised by ImageMagick.

MagickImageInfo(byte[], int, int)

Initializes a new instance of the MagickImageInfo class.

public MagickImageInfo(byte[] data, int offset, int count)

Parameters

data byte[]

The byte array to read the information from.

offset int

The offset at which to begin reading data.

count int

The maximum number of bytes to read.

Exceptions

ImageMagick.MagickException

Thrown when an error is raised by ImageMagick.

MagickImageInfo(byte[], int, int, IMagickReadSettings<ushort>?)

Initializes a new instance of the MagickImageInfo class.

public MagickImageInfo(byte[] data, int offset, int count, IMagickReadSettings<ushort>? readSettings)

Parameters

data byte[]

The byte array to read the information from.

offset int

The offset at which to begin reading data.

count int

The maximum number of bytes to read.

readSettings IMagickReadSettings<ushort>

The settings to use when reading the image.

Exceptions

ImageMagick.MagickException

Thrown when an error is raised by ImageMagick.

MagickImageInfo(FileInfo)

Initializes a new instance of the MagickImageInfo class.

public MagickImageInfo(FileInfo file)

Parameters

file FileInfo

The file to read the image from.

Exceptions

ImageMagick.MagickException

Thrown when an error is raised by ImageMagick.

MagickImageInfo(FileInfo, IMagickReadSettings<ushort>?)

Initializes a new instance of the MagickImageInfo class.

public MagickImageInfo(FileInfo file, IMagickReadSettings<ushort>? readSettings)

Parameters

file FileInfo

The file to read the image from.

readSettings IMagickReadSettings<ushort>

The settings to use when reading the image.

Exceptions

ImageMagick.MagickException

Thrown when an error is raised by ImageMagick.

MagickImageInfo(Stream)

Initializes a new instance of the MagickImageInfo class.

public MagickImageInfo(Stream stream)

Parameters

stream Stream

The stream to read the image data from.

Exceptions

ImageMagick.MagickException

Thrown when an error is raised by ImageMagick.

MagickImageInfo(Stream, IMagickReadSettings<ushort>?)

Initializes a new instance of the MagickImageInfo class.

public MagickImageInfo(Stream stream, IMagickReadSettings<ushort>? readSettings)

Parameters

stream Stream

The stream to read the image data from.

readSettings IMagickReadSettings<ushort>

The settings to use when reading the image.

Exceptions

ImageMagick.MagickException

Thrown when an error is raised by ImageMagick.

MagickImageInfo(string)

Initializes a new instance of the MagickImageInfo class.

public MagickImageInfo(string fileName)

Parameters

fileName string

The fully qualified name of the image file, or the relative image file name.

Exceptions

ImageMagick.MagickException

Thrown when an error is raised by ImageMagick.

MagickImageInfo(string, IMagickReadSettings<ushort>?)

Initializes a new instance of the MagickImageInfo class.

public MagickImageInfo(string fileName, IMagickReadSettings<ushort>? readSettings)

Parameters

fileName string

The fully qualified name of the image file, or the relative image file name.

readSettings IMagickReadSettings<ushort>

The settings to use when reading the image.

Exceptions

ImageMagick.MagickException

Thrown when an error is raised by ImageMagick.

Properties

ColorSpace

Gets the color space of the image.

public ColorSpace ColorSpace { get; }

Property Value

ColorSpace

Compression

Gets the compression method of the image.

public CompressionMethod Compression { get; }

Property Value

CompressionMethod

Density

Gets the density of the image.

public Density? Density { get; }

Property Value

Density

FileName

Gets the original file name of the image (only available if read from disk).

public string? FileName { get; }

Property Value

string

Format

Gets the format of the image.

public MagickFormat Format { get; }

Property Value

MagickFormat

Height

Gets the height of the image.

public int Height { get; }

Property Value

int

Interlace

Gets the type of interlacing.

public Interlace Interlace { get; }

Property Value

Interlace

Orientation

Gets the orientation of the image.

public OrientationType Orientation { get; }

Property Value

OrientationType

Quality

Gets the JPEG/MIFF/PNG compression level.

public int Quality { get; }

Property Value

int

Width

Gets the width of the image.

public int Width { get; }

Property Value

int

Methods

Read(byte[])

Read basic information about an image.

public void Read(byte[] data)

Parameters

data byte[]

The byte array to read the information from.

Exceptions

ImageMagick.MagickException

Thrown when an error is raised by ImageMagick.

Read(byte[], IMagickReadSettings<ushort>?)

Read basic information about an image.

public void Read(byte[] data, IMagickReadSettings<ushort>? readSettings)

Parameters

data byte[]

The byte array to read the information from.

readSettings IMagickReadSettings<ushort>

The settings to use when reading the image.

Exceptions

ImageMagick.MagickException

Thrown when an error is raised by ImageMagick.

Read(byte[], int, int)

Read basic information about an image.

public void Read(byte[] data, int offset, int count)

Parameters

data byte[]

The byte array to read the information from.

offset int

The offset at which to begin reading data.

count int

The maximum number of bytes to read.

Exceptions

ImageMagick.MagickException

Thrown when an error is raised by ImageMagick.

Read(byte[], int, int, IMagickReadSettings<ushort>?)

Read basic information about an image.

public void Read(byte[] data, int offset, int count, IMagickReadSettings<ushort>? readSettings)

Parameters

data byte[]

The byte array to read the information from.

offset int

The offset at which to begin reading data.

count int

The maximum number of bytes to read.

readSettings IMagickReadSettings<ushort>

The settings to use when reading the image.

Exceptions

ImageMagick.MagickException

Thrown when an error is raised by ImageMagick.

Read(FileInfo)

Read basic information about an image.

public void Read(FileInfo file)

Parameters

file FileInfo

The file to read the image from.

Exceptions

ImageMagick.MagickException

Thrown when an error is raised by ImageMagick.

Read(FileInfo, IMagickReadSettings<ushort>?)

Read basic information about an image.

public void Read(FileInfo file, IMagickReadSettings<ushort>? readSettings)

Parameters

file FileInfo

The file to read the image from.

readSettings IMagickReadSettings<ushort>

The settings to use when reading the image.

Exceptions

ImageMagick.MagickException

Thrown when an error is raised by ImageMagick.

Read(Stream)

Read basic information about an image.

public void Read(Stream stream)

Parameters

stream Stream

The stream to read the image data from.

Exceptions

ImageMagick.MagickException

Thrown when an error is raised by ImageMagick.

Read(Stream, IMagickReadSettings<ushort>?)

Read basic information about an image.

public void Read(Stream stream, IMagickReadSettings<ushort>? readSettings)

Parameters

stream Stream

The stream to read the image data from.

readSettings IMagickReadSettings<ushort>

The settings to use when reading the image.

Exceptions

ImageMagick.MagickException

Thrown when an error is raised by ImageMagick.

Read(string)

Read basic information about an image.

public void Read(string fileName)

Parameters

fileName string

The fully qualified name of the image file, or the relative image file name.

Exceptions

ImageMagick.MagickException

Thrown when an error is raised by ImageMagick.

Read(string, IMagickReadSettings<ushort>?)

Read basic information about an image.

public void Read(string fileName, IMagickReadSettings<ushort>? readSettings)

Parameters

fileName string

The fully qualified name of the image file, or the relative image file name.

readSettings IMagickReadSettings<ushort>

The settings to use when reading the image.

Exceptions

ImageMagick.MagickException

Thrown when an error is raised by ImageMagick.

ReadCollection(byte[])

Read basic information about an image with multiple frames/pages.

public static IEnumerable<IMagickImageInfo> ReadCollection(byte[] data)

Parameters

data byte[]

The byte array to read the information from.

Returns

IEnumerable<IMagickImageInfo>

A ImageMagick.IMagickImageInfo iteration.

Exceptions

ImageMagick.MagickException

Thrown when an error is raised by ImageMagick.

ReadCollection(byte[], IMagickReadSettings<ushort>?)

Read basic information about an image with multiple frames/pages.

public static IEnumerable<IMagickImageInfo> ReadCollection(byte[] data, IMagickReadSettings<ushort>? readSettings)

Parameters

data byte[]

The byte array to read the information from.

readSettings IMagickReadSettings<ushort>

The settings to use when reading the image.

Returns

IEnumerable<IMagickImageInfo>

A ImageMagick.IMagickImageInfo iteration.

Exceptions

ImageMagick.MagickException

Thrown when an error is raised by ImageMagick.

ReadCollection(byte[], int, int)

Read basic information about an image with multiple frames/pages.

public static IEnumerable<IMagickImageInfo> ReadCollection(byte[] data, int offset, int count)

Parameters

data byte[]

The byte array to read the information from.

offset int

The offset at which to begin reading data.

count int

The maximum number of bytes to read.

Returns

IEnumerable<IMagickImageInfo>

A ImageMagick.IMagickImageInfo iteration.

Exceptions

ImageMagick.MagickException

Thrown when an error is raised by ImageMagick.

ReadCollection(byte[], int, int, IMagickReadSettings<ushort>?)

Read basic information about an image with multiple frames/pages.

public static IEnumerable<IMagickImageInfo> ReadCollection(byte[] data, int offset, int count, IMagickReadSettings<ushort>? readSettings)

Parameters

data byte[]

The byte array to read the information from.

offset int

The offset at which to begin reading data.

count int

The maximum number of bytes to read.

readSettings IMagickReadSettings<ushort>

The settings to use when reading the image.

Returns

IEnumerable<IMagickImageInfo>

A ImageMagick.IMagickImageInfo iteration.

Exceptions

ImageMagick.MagickException

Thrown when an error is raised by ImageMagick.

ReadCollection(FileInfo)

Read basic information about an image with multiple frames/pages.

public static IEnumerable<IMagickImageInfo> ReadCollection(FileInfo file)

Parameters

file FileInfo

The file to read the frames from.

Returns

IEnumerable<IMagickImageInfo>

A ImageMagick.IMagickImageInfo iteration.

Exceptions

ImageMagick.MagickException

Thrown when an error is raised by ImageMagick.

ReadCollection(FileInfo, IMagickReadSettings<ushort>?)

Read basic information about an image with multiple frames/pages.

public static IEnumerable<IMagickImageInfo> ReadCollection(FileInfo file, IMagickReadSettings<ushort>? readSettings)

Parameters

file FileInfo

The file to read the frames from.

readSettings IMagickReadSettings<ushort>

The settings to use when reading the image.

Returns

IEnumerable<IMagickImageInfo>

A ImageMagick.IMagickImageInfo iteration.

Exceptions

ImageMagick.MagickException

Thrown when an error is raised by ImageMagick.

ReadCollection(Stream)

Read basic information about an image with multiple frames/pages.

public static IEnumerable<IMagickImageInfo> ReadCollection(Stream stream)

Parameters

stream Stream

The stream to read the image data from.

Returns

IEnumerable<IMagickImageInfo>

A ImageMagick.IMagickImageInfo iteration.

Exceptions

ImageMagick.MagickException

Thrown when an error is raised by ImageMagick.

ReadCollection(Stream, IMagickReadSettings<ushort>?)

Read basic information about an image with multiple frames/pages.

public static IEnumerable<IMagickImageInfo> ReadCollection(Stream stream, IMagickReadSettings<ushort>? readSettings)

Parameters

stream Stream

The stream to read the image data from.

readSettings IMagickReadSettings<ushort>

The settings to use when reading the image.

Returns

IEnumerable<IMagickImageInfo>

A ImageMagick.IMagickImageInfo iteration.

Exceptions

ImageMagick.MagickException

Thrown when an error is raised by ImageMagick.

ReadCollection(string)

Read basic information about an image with multiple frames/pages.

public static IEnumerable<IMagickImageInfo> ReadCollection(string fileName)

Parameters

fileName string

The fully qualified name of the image file, or the relative image file name.

Returns

IEnumerable<IMagickImageInfo>

A ImageMagick.IMagickImageInfo iteration.

Exceptions

ImageMagick.MagickException

Thrown when an error is raised by ImageMagick.

ReadCollection(string, IMagickReadSettings<ushort>?)

Read basic information about an image with multiple frames/pages.

public static IEnumerable<IMagickImageInfo> ReadCollection(string fileName, IMagickReadSettings<ushort>? readSettings)

Parameters

fileName string

The fully qualified name of the image file, or the relative image file name.

readSettings IMagickReadSettings<ushort>

The settings to use when reading the image.

Returns

IEnumerable<IMagickImageInfo>

A ImageMagick.IMagickImageInfo iteration.

Exceptions

ImageMagick.MagickException

Thrown when an error is raised by ImageMagick.