[]
ID2D1BitmapBrush
[Guid("2cd906aa-12e2-11dc-9fed-001143a055f9")]
public class BitmapBrush : Brush, IDisposable, IUnknown
Initializes a new instance of the BitmapBrush class.
public BitmapBrush(IntPtr nativePtr)
nativePtr
System.IntPtrThe native pointer.
Creates an BitmapBrush from the specified bitmap.
public static BitmapBrush Create(RenderTarget renderTarget, Bitmap bitmap, BitmapBrushProperties bitmapBrushProperties)
renderTarget
RenderTargetan instance of RenderTarget
bitmap
BitmapThe bitmap contents of the new brush.
bitmapBrushProperties
BitmapBrushPropertiesThe extend modes and interpolation mode of the new brush, or NULL. If this parameter is NULL, the brush defaults to the Clamp horizontal and vertical extend modes and the Linear interpolation mode.
Creates an BitmapBrush from the specified bitmap.
public static BitmapBrush Create(RenderTarget renderTarget, Bitmap bitmap, BrushProperties brushProperties)
renderTarget
RenderTargetan instance of RenderTarget
bitmap
BitmapThe bitmap contents of the new brush.
brushProperties
BrushPropertiesThe 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.
Creates an BitmapBrush from the specified bitmap.
public static BitmapBrush Create(RenderTarget renderTarget, Bitmap bitmap, BitmapBrushProperties? bitmapBrushProperties, BrushProperties? brushProperties)
renderTarget
RenderTargetan instance of RenderTarget
bitmap
BitmapThe bitmap contents of the new brush.
bitmapBrushProperties
BitmapBrushProperties?The extend modes and interpolation mode of the new brush, or NULL. If this parameter is NULL, the brush defaults to the Clamp horizontal and vertical extend modes and the Linear interpolation mode.
brushProperties
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.
Creates an BitmapBrush from the specified bitmap.
public static BitmapBrush Create(RenderTarget renderTarget, Bitmap bitmap)
renderTarget
RenderTargetan instance of RenderTarget
bitmap
BitmapThe bitmap contents of the new brush.
void ID2D1BitmapBrush::GetBitmap([Out] ID2D1Bitmap** bitmap)
public Bitmap GetBitmap()
D2D1_EXTEND_MODE ID2D1BitmapBrush::GetExtendModeX()
public ExtendMode GetExtendModeX()
D2D1_EXTEND_MODE ID2D1BitmapBrush::GetExtendModeY()
public ExtendMode GetExtendModeY()
D2D1_BITMAP_INTERPOLATION_MODE ID2D1BitmapBrush::GetInterpolationMode()
public BitmapInterpolationMode GetInterpolationMode()
void ID2D1BitmapBrush::SetBitmap([In, Optional] ID2D1Bitmap* bitmap)
public void SetBitmap(Bitmap bitmap)
bitmap
Bitmapvoid ID2D1BitmapBrush::SetExtendModeX([In] D2D1_EXTEND_MODE extendModeX)
public void SetExtendModeX(ExtendMode extendModeX)
extendModeX
ExtendModevoid ID2D1BitmapBrush::SetExtendModeY([In] D2D1_EXTEND_MODE extendModeY)
public void SetExtendModeY(ExtendMode extendModeY)
extendModeY
ExtendModevoid ID2D1BitmapBrush::SetInterpolationMode([In] D2D1_BITMAP_INTERPOLATION_MODE interpolationMode)
public void SetInterpolationMode(BitmapInterpolationMode interpolationMode)
interpolationMode
BitmapInterpolationModePerforms an explicit conversion from System.IntPtr to BitmapBrush.
public static explicit operator BitmapBrush(IntPtr nativePointer)
nativePointer
System.IntPtr