public void DrawBitmap(ID2D1Bitmap bitmap, float opacity, InterpolationMode interpolationMode, RectangleF sourceRectangle, Matrix4x4 perspectiveTransformRef)
 {
     DrawBitmap(bitmap, null, opacity, interpolationMode, sourceRectangle, perspectiveTransformRef);
 }
示例#2
0
 public void CopyFromBitmap(Point destinationPoint, ID2D1Bitmap sourceBitmap, Rectangle sourceArea)
 {
     CopyFromBitmap(destinationPoint, sourceBitmap, sourceArea);
 }
 public void DrawBitmap(ID2D1Bitmap bitmap, float opacity, InterpolationMode interpolationMode)
 {
     DrawBitmap(bitmap, null, opacity, interpolationMode, null, null);
 }
示例#4
0
 public void CopyFromBitmap(Point destinationPoint, ID2D1Bitmap sourceBitmap)
 {
     CopyFromBitmap(destinationPoint, sourceBitmap, null);
 }
示例#5
0
 public void CopyFromBitmap(ID2D1Bitmap sourceBitmap)
 {
     CopyFromBitmap(null, sourceBitmap, 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)
        {
            Guard.NotNull(bitmap, nameof(bitmap));

            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, RawRectangleF sourceRectangle)
 {
     DrawBitmap(bitmap, null, opacity, interpolationMode, sourceRectangle);
 }