Esempio n. 1
0
 /// <summary>Initializes a new instance of the <see cref="GdiBitmap32"/> class.</summary>
 /// <param name="image"></param>
 public GdiBitmap32(Image image)
     : this(GdiBitmap32Extensions.ToGdiBitmap(image))
 {
 }
Esempio n. 2
0
 /// <summary>Draws the specified image ontop of this one.</summary>
 /// <param name="other">The image to draw.</param>
 /// <param name="x">The x position.</param>
 /// <param name="y">The y position.</param>
 /// <param name="width">The width.</param>
 /// <param name="height">The height.</param>
 /// <param name="translation">The translation.</param>
 public override void Draw(Bitmap32 other, float x, float y, float width, float height, Translation?translation = null)
 {
     Draw(GdiBitmap32Extensions.ToGdiBitmap(other), x, y, width, height, translation);
 }
Esempio n. 3
0
 /// <summary>Initializes a new instance of the <see cref="GdiBitmap32"/> class.</summary>
 /// <param name="bitmap"></param>
 public GdiBitmap32(IBitmap32 bitmap)
     : this(GdiBitmap32Extensions.ToGdiBitmap(bitmap))
 {
 }
Esempio n. 4
0
 /// <summary>Draws the specified image ontop of this one.</summary>
 /// <param name="other">The image to draw.</param>
 /// <param name="x">The x position.</param>
 /// <param name="y">The y position.</param>
 /// <param name="width">The width.</param>
 /// <param name="height">The height.</param>
 /// <param name="translation">The translation.</param>
 public override void Draw(Bitmap32 other, int x, int y, int width, int height, Translation?translation = null) => Draw(GdiBitmap32Extensions.ToGdiBitmap(other), x, y, width, height, translation);