Create(RenderTarget,Bitmap,Nullable<BitmapBrushProperties>,Nullable<BrushProperties>) Method
In This Topic
Creates an
BitmapBrush from the specified bitmap.
Syntax
'Declaration
Public Overloads Shared Function Create( _
ByVal As RenderTarget, _
ByVal As Bitmap, _
ByVal As System.Nullable(Of BitmapBrushProperties), _
ByVal As System.Nullable(Of BrushProperties) _
) As BitmapBrush
public static BitmapBrush Create(
RenderTarget ,
Bitmap ,
System.Nullable<BitmapBrushProperties> ,
System.Nullable<BrushProperties>
)
Parameters
- renderTarget
- an instance of RenderTarget
- bitmap
- The bitmap contents of the new brush.
- bitmapBrushProperties
- The extend modes and interpolation mode of the new brush, or NULL. If this parameter is NULL, the brush defaults to the ExtendMode.Clamp horizontal and vertical extend modes and the BitmapInterpolationMode.Linear interpolation mode.
- 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.
See Also