public void RenderGray4(byte[] frame) { // Render as orange palette (same as default with no PAL loaded) var planes = FrameUtil.Split(DmdWidth, DmdHeight, 4, frame); var orangeframe = LibDmd.Common.FrameUtil.ConvertToRgb24(DmdWidth, DmdHeight, planes, ColorUtil.GetPalette(new[] { Colors.Black, Colors.OrangeRed }, 16)); Marshal.Copy(orangeframe, 0, _pnt, DmdWidth * DmdHeight * 3); Render_RGB24((ushort)DmdWidth, (ushort)DmdHeight, _pnt); }