示例#1
0
 public CompositeImageAttributesChunk(int width, int height, PSPCompositeImageType imageType, PSPCompression compression)
 {
     this.chunkSize          = HeaderSize;
     this.width              = width;
     this.height             = height;
     this.bitDepth           = 24;
     this.compressionType    = compression;
     this.planeCount         = 1;
     this.colorCount         = (1 << 24);
     this.compositeImageType = imageType;
 }
示例#2
0
        public CompositeImageAttributesChunk(BufferedBinaryReader br)
        {
            this.chunkSize          = br.ReadUInt32();
            this.width              = br.ReadInt32();
            this.height             = br.ReadInt32();
            this.bitDepth           = br.ReadUInt16();
            this.compressionType    = (PSPCompression)br.ReadUInt16();
            this.planeCount         = br.ReadUInt16();
            this.colorCount         = br.ReadUInt32();
            this.compositeImageType = (PSPCompositeImageType)br.ReadUInt16();

            long dif = (long)this.chunkSize - HeaderSize;

            if (dif > 0)
            {
                br.Position += dif;
            }
        }