Bitmap for WPF
DrawBitmap(Bitmap,RectF,Single,BitmapInterpolationMode) メソッド

C1.WPF.DX.4.5.2 アセンブリ > C1.Util.DX.Direct2D 名前空間 > RenderTarget クラス > DrawBitmap メソッド : DrawBitmap(Bitmap,RectF,Single,BitmapInterpolationMode) メソッド
The bitmap to render.
The size and position, in device-independent pixels in the render target's coordinate space, of the area to which the bitmap is drawn; NULL to draw the selected portion of the bitmap at the origin of the render target. If the rectangle is specified but not well-ordered, nothing is drawn, but the render target does not enter an error state.
A value between 0.0f and 1.0f, inclusive, that specifies an opacity value to apply to the bitmap; this value is multiplied against the alpha values of the bitmap's contents. The default value is 1.0f.
The interpolation mode to use if the bitmap is scaled or rotated by the drawing operation. The default value is BitmapInterpolationMode.Linear.
Draws the specified bitmap after scaling it to the size of the specified rectangle.
シンタックス
'宣言
 
Public Overloads Sub DrawBitmap( _
   ByVal bitmap As Bitmap, _
   ByVal destinationRectangle As RectF, _
   Optional ByVal opacity As System.Single, _
   Optional ByVal interpolationMode As BitmapInterpolationMode _
) 
public void DrawBitmap( 
   Bitmap bitmap,
   RectF destinationRectangle,
   System.float opacity,
   BitmapInterpolationMode interpolationMode
)

パラメータ

bitmap
The bitmap to render.
destinationRectangle
The size and position, in device-independent pixels in the render target's coordinate space, of the area to which the bitmap is drawn; NULL to draw the selected portion of the bitmap at the origin of the render target. If the rectangle is specified but not well-ordered, nothing is drawn, but the render target does not enter an error state.
opacity
A value between 0.0f and 1.0f, inclusive, that specifies an opacity value to apply to the bitmap; this value is multiplied against the alpha values of the bitmap's contents. The default value is 1.0f.
interpolationMode
The interpolation mode to use if the bitmap is scaled or rotated by the drawing operation. The default value is BitmapInterpolationMode.Linear.
参照

RenderTarget クラス
RenderTarget メンバ
オーバーロード一覧