Graphics.TextBuffer.Set C# (CSharp) Method

Set() public method

public Set ( int Idx, Graphics.Color Fg, Graphics.Color Bg ) : void
Idx int
Fg Graphics.Color
Bg Graphics.Color
return void
        public void Set(int Idx, Color Fg, Color Bg)
        {
            Idx *= 4;
            ForeDataRaw[Idx] = Fg.R;
            ForeDataRaw[Idx + 1] = Fg.G;
            ForeDataRaw[Idx + 2] = Fg.B;
            BackDataRaw[Idx] = Bg.R;
            BackDataRaw[Idx + 1] = Bg.G;
            BackDataRaw[Idx + 2] = Bg.B;
            BackDataRaw[Idx + 3] = Bg.A;
            Dirty = true;
        }

Same methods

TextBuffer::Set ( int Idx, char C, Graphics.Color Fg, Graphics.Color Bg ) : void
TextBuffer::Set ( int X, int Y, Graphics.Color Fg, Graphics.Color Bg ) : void
TextBuffer::Set ( int X, int Y, char C, Graphics.Color Fg, Graphics.Color Bg ) : void