/// <summary> /// Draws the specified bitmap after scaling it to the size of the specified rectangle. /// </summary> /// <param name="bitmap">The <see cref="ID2D1Bitmap"/> to render.</param> /// <param name="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; If the rectangle is specified but not well-ordered, nothing is drawn, but the render target does not enter an error state.</param> /// <param name="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. </param> /// <param name="interpolationMode">The interpolation mode to use if the bitmap is scaled or rotated by the drawing operation. The default value is <see cref="F:Vortice.Direct2D1.BitmapInterpolationMode.Linear" />. </param> /// <param name="sourceRectangle">The size and position, in device-independent pixels in the bitmap's coordinate space, of the area within the bitmap to be drawn; NULL to draw the entire bitmap. </param> public void DrawBitmap(ID2D1Bitmap bitmap, RectangleF destinationRectangle, float opacity, BitmapInterpolationMode interpolationMode, RectangleF sourceRectangle) { RawRectF rawDestinationRectangle = destinationRectangle; RawRectF rawSourceRectangle = sourceRectangle; DrawBitmap(bitmap, (RawRectF?)rawDestinationRectangle, opacity, interpolationMode, rawSourceRectangle); }
public void DrawBitmap(ID2D1Bitmap bitmap, float opacity, InterpolationMode interpolationMode, in Matrix4x4 perspectiveTransform)
public void DrawBitmap(ID2D1Bitmap bitmap, float opacity, InterpolationMode interpolationMode) { DrawBitmap(bitmap, null, opacity, interpolationMode, null, null); }
public ID2D1BitmapBrush1 CreateBitmapBrush(ID2D1Bitmap bitmap) { return(CreateBitmapBrush(bitmap, null, null)); }
/// <summary> /// Draws the specified bitmap. /// </summary> /// <param name="bitmap">The <see cref="ID2D1Bitmap"/> to render.</param> public void DrawBitmap(ID2D1Bitmap bitmap) { DrawBitmap(bitmap, null, 1.0f, BitmapInterpolationMode.Linear, null); }
public ID2D1Bitmap CreateSharedBitmap(ID2D1Bitmap bitmap, BitmapProperties?bitmapProperties) { return(CreateSharedBitmap(typeof(ID2D1Bitmap).GUID, bitmap.NativePointer, bitmapProperties)); }
/// <summary> /// Draws the specified bitmap after scaling it to the size of the specified rectangle. /// </summary> /// <param name="bitmap">The <see cref="ID2D1Bitmap"/> to render.</param> /// <param name="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. </param> /// <param name="interpolationMode">The interpolation mode to use if the bitmap is scaled or rotated by the drawing operation. The default value is <see cref="F:SharpDX.Direct2D1.BitmapInterpolationMode.Linear" />. </param> /// <param name="sourceRectangle">The size and position, in device-independent pixels in the bitmap's coordinate space, of the area within the bitmap to be drawn; NULL to draw the entire bitmap. </param> public void DrawBitmap(ID2D1Bitmap bitmap, float opacity, BitmapInterpolationMode interpolationMode, RectangleF sourceRectangle) { RawRectF rawRect = sourceRectangle; DrawBitmap(bitmap, null, opacity, interpolationMode, rawRect); }
public void DrawBitmap(ID2D1Bitmap bitmap, float opacity, InterpolationMode interpolationMode, RectF sourceRectangle, Matrix4x4 perspectiveTransformRef) { DrawBitmap(bitmap, null, opacity, interpolationMode, sourceRectangle, perspectiveTransformRef); }
public void CopyFromBitmap(Point destinationPoint, ID2D1Bitmap sourceBitmap, Rect sourceArea) { CopyFromBitmap(destinationPoint, sourceBitmap, sourceArea); }
public void CopyFromBitmap(Point destinationPoint, ID2D1Bitmap sourceBitmap) { CopyFromBitmap(destinationPoint, sourceBitmap, null); }
public void CopyFromBitmap(ID2D1Bitmap sourceBitmap) { CopyFromBitmap(null, sourceBitmap, null); }
public void CopyFromBitmap(Point destinationPoint, ID2D1Bitmap sourceBitmap, Rectangle sourceArea) { RawRect rawSourceArea = sourceArea; CopyFromBitmap(destinationPoint, sourceBitmap, rawSourceArea); }
/// <summary> /// Draws the specified bitmap after scaling it to the size of the specified rectangle. /// </summary> /// <param name="bitmap">The <see cref="ID2D1Bitmap"/> to render.</param> /// <param name="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. </param> /// <param name="interpolationMode">The interpolation mode to use if the bitmap is scaled or rotated by the drawing operation. The default value is <see cref="F:SharpDX.Direct2D1.BitmapInterpolationMode.Linear" />. </param> /// <param name="sourceRectangle">The size and position, in device-independent pixels in the bitmap's coordinate space, of the area within the bitmap to be drawn; NULL to draw the entire bitmap. </param> public void DrawBitmap(ID2D1Bitmap bitmap, float opacity, BitmapInterpolationMode interpolationMode, RectF sourceRectangle) { DrawBitmap(bitmap, null, opacity, interpolationMode, sourceRectangle); }