/// <summary>Initializes a new instance of the <see cref="GdiBitmap32"/> class.</summary> /// <param name="image"></param> public GdiBitmap32(Image image) : this(GdiBitmap32Extensions.ToGdiBitmap(image)) { }
/// <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); }
/// <summary>Initializes a new instance of the <see cref="GdiBitmap32"/> class.</summary> /// <param name="bitmap"></param> public GdiBitmap32(IBitmap32 bitmap) : this(GdiBitmap32Extensions.ToGdiBitmap(bitmap)) { }
/// <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);