/// <summary> /// Draw text /// </summary> /// <param name="str">Text to display</param> /// <param name="x">x start position</param> /// <param name="y">y start postion</param> /// <param name="foreColor">Color of the font</param> /// <param name="backColor">Color of the text background</param> public void DrawString(string str, int x, int y, FEZ_Components.FEZTouch.Color foreColor, FEZ_Components.FEZTouch.Color backColor) { this.screen.DrawString(str, x + xOffset, y + yOffset, foreColor, backColor); }
/// <summary> /// Draw an image /// </summary> /// <param name="x">start X position</param> /// <param name="y">start Y position</param> /// <param name="image">Image to display</param> public void DrawImage(int x, int y, FEZ_Components.FEZTouch.Image image) { this.screen.DrawImage(x + xOffset, y + yOffset, image); }
/// <summary> /// Draw a line /// </summary> /// <param name="x0">x strat position</param> /// <param name="y0">y start position</param> /// <param name="x1">x end position</param> /// <param name="y1">y end position</param> /// <param name="col">line color</param> public void DrawLine(int x0, int y0, int x1, int y1, FEZ_Components.FEZTouch.Color col) { this.screen.DrawLine(xOffset + x0, yOffset + y0, xOffset + x1, yOffset + y1, col); }
/// <summary> /// Draw a pixel /// </summary> /// <param name="x">x pixel position</param> /// <param name="y">y pixel postion</param> /// <param name="col">Pixel color</param> public void SetPixel(int x, int y, FEZ_Components.FEZTouch.Color col) { this.SetPixel(x + xOffset, y + yOffset, col); }