コード例 #1
0
 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;
 }
コード例 #2
0
            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;
                }
            }