/// <summary> /// Draws a TinyBitmap to the display. /// </summary> /// <param name="tb">The TinyBitmap to display.</param> /// <param name="xDst">The x coordinate where to draw.</param> /// <param name="yDst">The y coordinate where to draw.</param> /// <param name="xSrc">The x coordinate of the portion of the bitmap you wish to start drawing from.</param> /// <param name="ySrc">The y coordinate of the portion of the bitmap you wish to start drawing from.</param> /// <param name="width">The width of the TinyBitmap you wish to draw.</param> /// <param name="height">The height of the TinyBitmap you wish to draw.</param> public static void Draw(TinyBitmap tb, int xDst, int yDst, int xSrc, int ySrc, uint width, uint height) { Display.DrawImage(tb.Data, (ushort)xDst, (ushort)yDst, (ushort)tb.Width, (ushort)tb.Height, (ushort)xSrc, (ushort)ySrc, (ushort)width, (ushort)height); }
/// <summary> /// Draws a TinyBitmap to the display. /// </summary> /// <param name="tb">The TinyBitmap to display.</param> /// <param name="xDst">The x coordinate where to draw.</param> /// <param name="yDst">The y coordinate where to draw.</param> public static void Draw(TinyBitmap tb, int xDst, int yDst) { Display.Draw(tb, xDst, yDst, 0, 0, tb.Width, tb.Height); }