作成日: 2014/09/26 最終更新日: 2015/02/18
文書種別
技術情報
詳細
グラフイメージを取得する為の機能として、次のメソッドが用意されています。
・GetImageメソッド
指定した形式とサイズを使用して、現在のグラフ表示のイメージを取得します。
◆サンプルコード
[VB]
[C#]
・GetImageメソッド
指定した形式とサイズを使用して、現在のグラフ表示のイメージを取得します。
◆サンプルコード
[VB]
' グラフイメージを取得します。
Dim img As System.Drawing.Image
Dim sz As New System.Drawing.Size(C1WebChart1.Width.Value, C1WebChart1.Height.Value)
Dim fmt As System.Drawing.Imaging.ImageFormat = C1WebChart1.ImageFormat
img = C1WebChart1.GetImage(fmt, sz)
Dim img As System.Drawing.Image
Dim sz As New System.Drawing.Size(C1WebChart1.Width.Value, C1WebChart1.Height.Value)
Dim fmt As System.Drawing.Imaging.ImageFormat = C1WebChart1.ImageFormat
img = C1WebChart1.GetImage(fmt, sz)
[C#]
// グラフイメージを取得します。
System.Drawing.Image img = default(System.Drawing.Image);
System.Drawing.Size sz = new System.Drawing.Size((int)C1WebChart1.Width.Value, (int)C1WebChart1.Height.Value);
System.Drawing.Imaging.ImageFormat fmt = C1WebChart1.ImageFormat;
img = C1WebChart1.GetImage(fmt, sz);
System.Drawing.Image img = default(System.Drawing.Image);
System.Drawing.Size sz = new System.Drawing.Size((int)C1WebChart1.Width.Value, (int)C1WebChart1.Height.Value);
System.Drawing.Imaging.ImageFormat fmt = C1WebChart1.ImageFormat;
img = C1WebChart1.GetImage(fmt, sz);
旧文書番号
69795