/// <summary> /// Creates an <see cref="SharpDX.Direct2D1.BitmapBrush"/> from the specified bitmap. /// </summary> /// <param name="deviceContext">an instance of <see cref = "DeviceContext" /></param> /// <param name="bitmap">The bitmap contents of the new brush.</param> /// <param name="bitmapBrushProperties">The extend modes and interpolation mode of the new brush, or NULL. If this parameter is NULL, the brush defaults to the <see cref="SharpDX.Direct2D1.ExtendMode.Clamp"/> horizontal and vertical extend modes and the <see cref="SharpDX.Direct2D1.BitmapInterpolationMode.Linear"/> interpolation mode. </param> /// <param name="brushProperties">The opacity and transform of the new brush, or NULL. If this parameter is NULL, the brush defaults to an opacity of 1.0f and its transform is the identity matrix.</param> /// <unmanaged>HRESULT ID2D1DeviceContext::CreateBitmapBrush([In] ID2D1Bitmap* bitmap,[In, Optional] const D2D1_BITMAP_BRUSH_PROPERTIES1* bitmapBrushProperties,[In, Optional] const D2D1_BRUSH_PROPERTIES* brushProperties,[Out, Fast] ID2D1BitmapBrush1** bitmapBrush)</unmanaged> public BitmapBrush1(DeviceContext deviceContext, SharpDX.Direct2D1.Bitmap1 bitmap, SharpDX.Direct2D1.BitmapBrushProperties1?bitmapBrushProperties, SharpDX.Direct2D1.BrushProperties?brushProperties) : base(IntPtr.Zero) { deviceContext.CreateBitmapBrush(bitmap, bitmapBrushProperties, brushProperties, this); }
/// <summary> /// Creates an <see cref="SharpDX.Direct2D1.BitmapBrush"/> from the specified bitmap. /// </summary> /// <param name="deviceContext">an instance of <see cref = "DeviceContext" /></param> /// <param name="bitmap">The bitmap contents of the new brush.</param> /// <param name="bitmapBrushProperties">The extend modes and interpolation mode of the new brush, or NULL. If this parameter is NULL, the brush defaults to the <see cref="SharpDX.Direct2D1.ExtendMode.Clamp"/> horizontal and vertical extend modes and the <see cref="SharpDX.Direct2D1.BitmapInterpolationMode.Linear"/> interpolation mode. </param> /// <param name="brushProperties">The opacity and transform of the new brush, or NULL. If this parameter is NULL, the brush defaults to an opacity of 1.0f and its transform is the identity matrix.</param> /// <unmanaged>HRESULT ID2D1DeviceContext::CreateBitmapBrush([In] ID2D1Bitmap* bitmap,[In, Optional] const D2D1_BITMAP_BRUSH_PROPERTIES1* bitmapBrushProperties,[In, Optional] const D2D1_BRUSH_PROPERTIES* brushProperties,[Out, Fast] ID2D1BitmapBrush1** bitmapBrush)</unmanaged> public BitmapBrush1(DeviceContext deviceContext, SharpDX.Direct2D1.Bitmap1 bitmap, SharpDX.Direct2D1.BitmapBrushProperties1? bitmapBrushProperties, SharpDX.Direct2D1.BrushProperties? brushProperties) : base(IntPtr.Zero) { deviceContext.CreateBitmapBrush(bitmap, bitmapBrushProperties, brushProperties, this); }