示例#1
0
 public static void FillA(int x1, int y1, int x2, int y2, PIXEL pixel, COLOUR colour)
 {
     Clip(x1, y1);
     Clip(x2, y2);
     for (int x = x1; x < x2; x++)
     {
         for (int y = y1; y < y2; y++)
         {
             DrawA(x, y, pixel, colour);
         }
     }
 }
示例#2
0
        public static void DrawToScreenBuffer(string text, int y, int x, COLOUR color)
        {
            Char[] tempArr = text.ToCharArray(0, text.Length);
            int    i       = 0;

            foreach (char c in tempArr)
            {
                buf[y * ScreenWidth + (x + i)].Char.AsciiChar = (byte)(int)c;
                buf[y * ScreenWidth + (x + i)].Attributes     = (short)color;
                i++;
            }
        }
示例#3
0
 public static void SetAttribute(int x, int y, COLOUR colour)
 {
     buf[y * ScreenWidth + x].Attributes = (short)colour;
 }
示例#4
0
 public static void DrawA(int x, int y, PIXEL pixel, COLOUR colour)
 {
     buf[y * ScreenWidth + x].Char.AsciiChar = (byte)pixel;
     buf[y * ScreenWidth + x].Attributes     = (short)colour;
 }