Class ImageType
Represents an image type, including pixel format and image dimensions.
Inherited Members
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 |
int | height | The height of the image in pixels, or |
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 |
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 |
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. |