public Screendata(byte[] data, int width, int height, Graphic.NNSG2dColorMode mode) { this.Header = new DataBlockHeader("NRCS", 0U); this.screenWidth = (ushort)width; this.screenHeight = (ushort)height; this.colorMode = mode; this.screenFormat = Graphic.NNSG2dScreenFormat.NNS_G2D_SCREENFORMAT_TEXT; this.szByte = (uint)data.Length; this.Data = data; }
public Screendata(EndianBinaryReader er, out bool OK) { bool OK1; this.Header = new DataBlockHeader(er, "NRCS", out OK1); if (!OK1) { OK = false; } else { this.screenWidth = er.ReadUInt16(); this.screenHeight = er.ReadUInt16(); this.colorMode = (Graphic.NNSG2dColorMode)er.ReadUInt16(); this.screenFormat = (Graphic.NNSG2dScreenFormat)er.ReadUInt16(); this.szByte = er.ReadUInt32(); this.Data = er.ReadBytes((int)this.szByte); OK = true; } }
public NSCR(byte[] data, int width, int height, Graphic.NNSG2dColorMode mode) { this.Header = new FileHeader.HeaderInfo("RCSN", (ushort)1); this.ScreenData = new NSCR.Screendata(data, width, height, mode); }