コード例 #1
0
ファイル: WzCanvas.cs プロジェクト: stu98832/libwz
 /// <summary> 設定這個<see cref="WzCanvas"/>的圖像資料 </summary>
 public void SetBitmap(Bitmap bmp)
 {
     this.Width  = bmp.Width;
     this.Height = bmp.Height;
     byte[] data = CanvasTools.Compress(this.Format, this.Scale, this.Width, this.Height, bmp);
     this.CanvasData = data;
     this.DataSize   = data.Length;
 }
コード例 #2
0
ファイル: WzCanvas.cs プロジェクト: stu98832/libwz
 /// <summary> 取得這個<see cref="WzCanvas"/>所儲存的圖像資料 </summary>
 public Bitmap GetBitmap()
 {
     return(CanvasTools.Decompress(this.Format, this.Scale, this.Width, this.Height, this.CanvasData));;
 }