Ejemplo n.º 1
0
 public void DrawBitmap(ID2D1Bitmap bitmap, float opacity, InterpolationMode interpolationMode, RectangleF sourceRectangle, Matrix4x4 perspectiveTransformRef)
 {
     DrawBitmap(bitmap, null, opacity, interpolationMode, sourceRectangle, perspectiveTransformRef);
 }
Ejemplo n.º 2
0
 public void CopyFromBitmap(Point destinationPoint, ID2D1Bitmap sourceBitmap, Rectangle sourceArea)
 {
     CopyFromBitmap(destinationPoint, sourceBitmap, sourceArea);
 }
Ejemplo n.º 3
0
 public void DrawBitmap(ID2D1Bitmap bitmap, float opacity, InterpolationMode interpolationMode)
 {
     DrawBitmap(bitmap, null, opacity, interpolationMode, null, null);
 }
Ejemplo n.º 4
0
 public void CopyFromBitmap(Point destinationPoint, ID2D1Bitmap sourceBitmap)
 {
     CopyFromBitmap(destinationPoint, sourceBitmap, null);
 }
Ejemplo n.º 5
0
 public void CopyFromBitmap(ID2D1Bitmap sourceBitmap)
 {
     CopyFromBitmap(null, sourceBitmap, null);
 }
Ejemplo n.º 6
0
 /// <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);
 }
Ejemplo n.º 7
0
        public ID2D1Bitmap CreateSharedBitmap(ID2D1Bitmap bitmap, BitmapProperties?bitmapProperties)
        {
            Guard.NotNull(bitmap, nameof(bitmap));

            return(CreateSharedBitmap(typeof(ID2D1Bitmap).GUID, bitmap.NativePointer, bitmapProperties));
        }
Ejemplo n.º 8
0
 /// <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);
 }