ComponentOne Bitmap for WPF
C1.WPF.DX.4.6.2 Assembly / C1.Util.DX.Direct2D Namespace / RenderTarget Class / DrawBitmap Method / DrawBitmap(Bitmap,Single,BitmapInterpolationMode) Method
The bitmap to render.
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 C1.Win.DX.Direct2D.BitmapInterpolationMode.Linear.

In This Topic
    DrawBitmap(Bitmap,Single,BitmapInterpolationMode) Method
    In This Topic
    Draws the specified bitmap after scaling it to the size of the specified rectangle.
    Syntax
    'Declaration
     
    Public Overloads Sub DrawBitmap( _
       ByVal bitmap As Bitmap, _
       ByVal opacity As Single, _
       ByVal interpolationMode As BitmapInterpolationMode _
    ) 
    public void DrawBitmap( 
       Bitmap bitmap,
       float opacity,
       BitmapInterpolationMode interpolationMode
    )

    Parameters

    bitmap
    The bitmap to render.
    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 C1.Win.DX.Direct2D.BitmapInterpolationMode.Linear.
    See Also