概要
画像チャートコントロールを表します。
シグネチャ
1 |
|
名前空間
cAlgo.API
例
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
using cAlgo.API;
namespace cAlgo
{
// このサンプルは、画像コントロールを使用して画像を表示する方法を示しています。
[Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
public class ImageSample : Indicator
{
protected override void Initialize()
{
var image = new Image
{
// ロゴはプロジェクトリソース内のアイコンファイルです。
Source = Properties.Resources.Logo,
Width = 200,
Height = 200,
HorizontalAlignment = HorizontalAlignment.Center,
VerticalAlignment = VerticalAlignment.Center,
};
Chart.AddControl(image);
}
public override void Calculate(int index)
{
}
}
}
プロパティ
Source
概要
画像のソースを取得または設定します。
シグネチャ
1 |
|
戻り値
object
Stretch
概要
画像を表示領域にどのように引き伸ばすかを示す値を取得または設定します。
シグネチャ
1 |
|
戻り値
Stretch
関連チュートリアル
- MessageBox
StretchDirection
概要
画像がどのようにスケーリングされるかを示す値を取得または設定します。
シグネチャ
1 |
|
戻り値
StretchDirection
関連チュートリアル
- MessageBox
関連チュートリアル
- Controls