/// <summary> /// Initializes a new instance of the <see cref="D2D1HwndRenderTargetProperties"/> struct. /// </summary> /// <param name="hwnd">The HWND to which the render target issues the output from its drawing commands.</param> public D2D1HwndRenderTargetProperties(IntPtr hwnd) { this.hwnd = hwnd; this.pixelSize = new D2D1SizeU(0U, 0U); this.presentOptions = D2D1PresentOptions.None; }
/// <summary> /// Initializes a new instance of the <see cref="D2D1HwndRenderTargetProperties"/> struct. /// </summary> /// <param name="hwnd">The HWND to which the render target issues the output from its drawing commands.</param> /// <param name="pixelSize">The size of the render target, in pixels.</param> /// <param name="presentOptions">A value that specifies whether the render target retains the frame after it is presented and whether the render target waits for the device to refresh before presenting.</param> public D2D1HwndRenderTargetProperties(IntPtr hwnd, D2D1SizeU pixelSize, D2D1PresentOptions presentOptions) { this.hwnd = hwnd; this.pixelSize = pixelSize; this.presentOptions = presentOptions; }
public void Resize(D2D1SizeU pixelSize) { this.renderTarget.Resize(ref pixelSize); }