Ejemplo n.º 1
0
        public GRPICONDIRENTRY ToGrpIconEntry()
        {
            GRPICONDIRENTRY grpIconEntry = new GRPICONDIRENTRY();

            grpIconEntry.bColorCount  = this.bColorCount;
            grpIconEntry.bHeight      = this.bHeight;
            grpIconEntry.bReserved    = this.bReserved;
            grpIconEntry.bWidth       = this.bWidth;
            grpIconEntry.dwBytesInRes = this.dwBytesInRes;
            grpIconEntry.wBitCount    = this.wBitCount;
            grpIconEntry.wPlanes      = this.wPlanes;
            return(grpIconEntry);
        }
Ejemplo n.º 2
0
        public void Read(Stream stream)
        {
            BinaryReader br = new BinaryReader(stream);

            idReserved = br.ReadUInt16();
            idType     = br.ReadUInt16();
            idCount    = br.ReadUInt16();
            idEntries  = new GRPICONDIRENTRY[idCount];
            for (int i = 0; i < idCount; i++)
            {
                idEntries[i] = new GRPICONDIRENTRY(stream);
            }
        }
Ejemplo n.º 3
0
        public ushort nID;                    // the ID

        #region Constructors
        public GRPICONDIRENTRY(Stream stream)
        {
            this = new GRPICONDIRENTRY();
            Read(stream);
        }
Ejemplo n.º 4
0
 public GRPICONDIRENTRY ToGrpIconEntry()
 {
     GRPICONDIRENTRY grpIconEntry = new GRPICONDIRENTRY();
     grpIconEntry.bColorCount    = this.bColorCount;
     grpIconEntry.bHeight        = this.bHeight;
     grpIconEntry.bReserved      = this.bReserved;
     grpIconEntry.bWidth         = this.bWidth;
     grpIconEntry.dwBytesInRes   = this.dwBytesInRes;
     grpIconEntry.wBitCount      = this.wBitCount;
     grpIconEntry.wPlanes        = this.wPlanes;
     return grpIconEntry;
 }
Ejemplo n.º 5
0
        public ushort nID; // the ID

        #region Constructors

        public GRPICONDIRENTRY(Stream stream)
        {
            this = new GRPICONDIRENTRY();
            this.Read(stream);
        }
Ejemplo n.º 6
0
 public void Read(Stream stream)
 {
     BinaryReader br = new BinaryReader(stream);
     idReserved      = br.ReadUInt16();
     idType          = br.ReadUInt16();
     idCount         = br.ReadUInt16();
     idEntries       = new GRPICONDIRENTRY[idCount];
     for(int i=0; i<idCount; i++)
         idEntries[i] = new GRPICONDIRENTRY(stream);
 }