マウスで矩形範囲を指定する時の縦横比を取得または設定します。
[Visual Basic]
Public Property RectDrawRatio As Double
[C#]
public double RectDrawRatio {get; set;}

プロパティ値

矩形の縦横比(縦/横)

デフォルトは0です。

解説

当プロパティを有効にする場合は、、RectDrawプロパティをTrueにする必要があります。
0の場合はマウス操作に依存しますが、それ以外の場合はマウス操作に合わせて指定した縦横比で矩形サイズが変化します。

表示イメージと同じ縦横比で矩形範囲を指定するコード例:


[Visual Basic]
Dim Ret As Boolean

ImageKit1.LayerNumber = -1
Ret = ImageKit1.GetImageType()
If Ret = False Then Exit Sub
ImageKit1.RectDrawRatio = ImageKit1.Height / ImageKit1.Width

[C#]
bool Ret;

ImageKit1.LayerNumber = -1;
Ret = ImageKit1.GetImageType();
if (Ret == False) return Ret;
ImageKit1.RectDrawRatio = ImageKit1.Height / ImageKit1.Width;

参照

ImageKit メンバ | Newtone.ImageKit.WPF.ImageKit