■ WriteableBitmap 클래스에서 WriteableBitmap 객체를 생성하는 방법을 보여준다.
▶ WriteableBitmap 클래스 : WriteableBitmap 객체 생성하기 예제 (C#)
1 2 3 4 5 6 7 8 9 10 11 12 13 |
using System.Windows.Media.Imaging; using System.Windows.Shapes; /// <summary> /// 비디오 사각형 /// </summary> Rectangle videoRectangle; ... WriteableBitmap writeableBitmap = CreateWriteableBitmap(videoRectangle); |
▶ WriteableBitmap 클래스 : WriteableBitmap 객체 생성하기 (C#)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
using System.Windows; using System.Windows.Media.Imaging; #region WriteableBitmap 객체 생성하기 - CreateWriteableBitmap(uiElement) /// <summary> /// WriteableBitmap 객체 생성하기 /// </summary> /// <param name="uiElement">UIElement 객체</param> /// <returns>WriteableBitmap 객체</returns> public WriteableBitmap CreateWriteableBitmap(UIElement uiElement) { WriteableBitmap writeableBitmap = new WriteableBitmap(uiElement, null); return writeableBitmap; } #endregion |