/// <summary> /// Initializes a new instance of the <see cref="D2D1RenderTargetProperties"/> struct. /// </summary> /// <param name="renderTargetType">A value that specifies whether the render target should force hardware or software rendering.</param> /// <param name="pixelFormat">The pixel format and alpha mode of the render target.</param> /// <param name="dpiX">The horizontal DPI of the render target. To use the default DPI, set dpiX and dpiY to 0.</param> /// <param name="dpiY">The vertical DPI of the render target. To use the default DPI, set dpiX and dpiY to 0.</param> /// <param name="usage">A value that specifies how the render target is remoted and whether it should be GDI-compatible.</param> /// <param name="minLevel">A value that specifies the minimum Direct3D feature level required for hardware rendering.</param> public D2D1RenderTargetProperties(D2D1RenderTargetType renderTargetType, D2D1PixelFormat pixelFormat, float dpiX, float dpiY, D2D1RenderTargetUsages usage, D2D1FeatureLevel minLevel) { this.renderTargetType = renderTargetType; this.pixelFormat = pixelFormat; this.dpiX = dpiX; this.dpiY = dpiY; this.usage = usage; this.minLevel = minLevel; }
/// <summary> /// Initializes a new instance of the <see cref="D2D1BitmapProperties"/> struct. /// </summary> /// <param name="pixelFormat">The bitmap's pixel format and alpha mode.</param> /// <param name="dpiX">The horizontal dpi of the bitmap.</param> /// <param name="dpiY">The vertical dpi of the bitmap.</param> public D2D1BitmapProperties(D2D1PixelFormat pixelFormat, float dpiX, float dpiY) { this.pixelFormat = pixelFormat; this.dpiX = dpiX; this.dpiY = dpiY; }