Exemplo n.º 1
0
        static XCursor imageLoad(BinaryReader sr)
        {
            XCursor tmp = new XCursor();
            //			header: 36 Image headers are 36 bytes
            uint header = sr.ReadUInt32();
            //			type: 0xfffd0002 Image type is 0xfffd0002
            uint type = sr.ReadUInt32();
            //			subtype: CARD32 Image subtype is the nominal size
            uint subtype = sr.ReadUInt32();
            //			version: 1
            uint version = sr.ReadUInt32();

            //			width: CARD32 Must be less than or equal to 0x7fff
            tmp.Width = sr.ReadUInt32();
            //			height: CARD32 Must be less than or equal to 0x7fff
            tmp.Height = sr.ReadUInt32();
            //			xhot: CARD32 Must be less than or equal to width
            tmp.Xhot = sr.ReadUInt32();
            //			yhot: CARD32 Must be less than or equal to height
            tmp.Yhot = sr.ReadUInt32();
            //			delay: CARD32 Delay between animation frames in milliseconds
            tmp.Delay = sr.ReadUInt32();
            //			pixels: LISTofCARD32 Packed ARGB format pixels
            tmp.data = sr.ReadBytes((int)(tmp.Width * tmp.Height * 4));
            return(tmp);
        }
Exemplo n.º 2
0
 static XCursor imageLoad(BinaryReader sr)
 {
     XCursor tmp = new XCursor();
     //			header: 36 Image headers are 36 bytes
     uint header = sr.ReadUInt32();
     //			type: 0xfffd0002 Image type is 0xfffd0002
     uint type = sr.ReadUInt32();
     //			subtype: CARD32 Image subtype is the nominal size
     uint subtype = sr.ReadUInt32();
     //			version: 1
     uint version = sr.ReadUInt32();
     //			width: CARD32 Must be less than or equal to 0x7fff
     tmp.Width = sr.ReadUInt32();
     //			height: CARD32 Must be less than or equal to 0x7fff
     tmp.Height = sr.ReadUInt32();
     //			xhot: CARD32 Must be less than or equal to width
     tmp.Xhot = sr.ReadUInt32();
     //			yhot: CARD32 Must be less than or equal to height
     tmp.Yhot = sr.ReadUInt32();
     //			delay: CARD32 Delay between animation frames in milliseconds
     tmp.Delay = sr.ReadUInt32();
     //			pixels: LISTofCARD32 Packed ARGB format pixels
     tmp.data = sr.ReadBytes((int)(tmp.Width * tmp.Height * 4));
     return tmp;
 }
Exemplo n.º 3
0
 public MouseCursorChangedEventArgs(XCursor newCursor) : base()
 {
     NewCursor = newCursor;
 }
Exemplo n.º 4
0
 public MouseCursorChangedEventArgs(XCursor newCursor)
     : base()
 {
     NewCursor = newCursor;
 }