Class ImageType

Represents an image type, including pixel format and image dimensions.

Inheritance
ImageType
Namespace: ic4
Assembly: ic4dotnet.dll
Syntax
public class ImageType

Constructors

ImageType(int, int, PixelFormat)

Creates a new image type object.

Declaration
public ImageType(int width = 0, int height = 0, PixelFormat pixelFormat = PixelFormat.Unspecified)
Parameters
Type Name Description
int width

The width of the image in pixels, or 0 if the width is not specified

int height

The height of the image in pixels, or 0 if the width is not specified

PixelFormat pixelFormat

The pixel format of the image, or Unspecified if the pixel format is not specified

Properties

Height

The height of the image

Declaration
public int Height { get; set; }
Property Value
Type Description
int

The height of the image in pixels, or 0 if the width is not specified

PixelFormat

The pixel format of the image

Declaration
public PixelFormat PixelFormat { get; set; }
Property Value
Type Description
PixelFormat

The pixel format of the image, or Unspecified if the pixel format is not specified

Width

The width of the image

Declaration
public int Width { get; set; }
Property Value
Type Description
int

The width of the image in pixels, or 0 if the width is not specified

Methods

ToString()

Creates a textual representation of the image type

Declaration
public override string ToString()
Returns
Type Description
string

A textual representation of the image type

Overrides
Exceptions
Type Condition
IC4Exception

Check ErrorCode and ToString() for details.