public static void DrawChar(Bitmap img, char c, ref int x, ref int y, Color color, float opacity) { bool[,] map = GetCharPixels(c); for (int i = 0; i < map.GetLength(0); i++) { for (int j = 0; j < map.GetLength(1); j++) { if (map[i, j]) { Previewer.SetPixel(img, x + i, y + j, color, opacity); } } } x += map.GetLength(0) + 1; }
private void OpenPreview(Job job, bool heightmap) { ConsoleOutput.WriteLine("Opening preview..."); Previewer.OpenDataPreview(job, heightmap); }