Class ImageType

ピクセルフォーマットや画像サイズを含む、画像の種類を表します。

Inheritance

ImageType
Namespace: ic4
Assembly: ic4dotnet.dll

構文

public class ImageType

コンストラクタ

ImageType(int, int, PixelFormat)

新しい画像タイプオブジェクトを作成します。

宣言

public ImageType(int width = 0, int height = 0, PixelFormat pixelFormat = PixelFormat.Unspecified)

パラメータ

名前 説明
int width 画像の幅(ピクセル単位)。指定されていない場合は0
int height 画像の高さ(ピクセル単位)。指定されていない場合は0
PixelFormat pixelFormat 画像のピクセルフォーマット。指定されていない場合はUnspecified

プロパティ

Height

画像の高さ

宣言

public int Height { get; set; }

プロパティ値

説明
int 画像の高さ(ピクセル単位)。指定されていない場合は0

PixelFormat

画像のピクセルフォーマット

宣言

public PixelFormat PixelFormat { get; set; }

プロパティ値

説明
PixelFormat 画像のピクセルフォーマット。指定されていない場合はUnspecified

Width

画像の幅

宣言

public int Width { get; set; }

プロパティ値

説明
int 画像の幅(ピクセル単位)。指定されていない場合は0

メソッド

ToString()

画像タイプの文字列表現を作成します。

宣言

public override string ToString()

戻り値

説明
string 画像タイプの文字列表現
オーバーライド

例外

条件
IC4Exception 詳細については ErrorCode および ToString() を確認してください。