コード例 #1
0
 public ResDir(int width, int height, short xHotspot, short yHotspot)
 {
     this.Icon       = new IconResDir(width, height);
     this.Planes     = xHotspot;
     this.BitCount   = yHotspot;
     this.BytesInRes = 40 + ((((((width + 7) >> 3) + 3) >> 2) << 2) + (width * 4)) * height;
     this.Offset     = 0;
 }
コード例 #2
0
 public ResDir(int width, int height)
 {
     this.Icon       = new IconResDir(width, height);
     this.Planes     = 1;
     this.BitCount   = 32;
     this.BytesInRes = 40 + ((((((width + 7) >> 3) + 3) >> 2) << 2) + (width * 4)) * height;
     this.Offset     = 0;
 }