예제 #1
0
        public Bitmap GetIndexedBitmapNotLz(int img, Color[] pal, int width, int height)
        {
            int length = (height * width) << 1;

            Seek(img);
            byte[] img_data = Br.ReadBytes(length);
            return(ImgFunction.ConvertGBAImageToBitmapIndexed(img_data, pal, width, height));
        }
예제 #2
0
 public override void ReadData()
 {
     CreationTime     = Br.ReadUInt32();
     ModificationTime = Br.ReadUInt32();
     TrackId          = Br.ReadUInt32();
     _reserved1       = Br.ReadBytes(4);
     Duration         = Br.ReadUInt32();
     _reserved2       = Br.ReadBytes(8);
     Layer            = Br.ReadUInt16();
     AlternateGroup   = Br.ReadUInt16();
     Volume           = Br.ReadInt16();
     _reserved3       = Br.ReadBytes(2);
     Matrix           = Matrix.FromByteBuffer(Br.BaseStream);
     Width            = Br.ReadUInt32();
     Height           = Br.ReadUInt32();
 }
예제 #3
0
 public override void ReadData()
 {
     _creationTime     = Br.ReadUInt32();
     _modificationTime = Br.ReadUInt32();
     TimeScale         = Br.ReadUInt32();
     Duration          = Br.ReadUInt32();
     _preferredRate    = Br.ReadUInt32();
     _preferredVolume  = Br.ReadUInt32();
     _reserved         = Br.ReadBytes(10);
     Matrix.FromByteBuffer(Br.BaseStream);
     //_matrixStructure = Br.ReadBytes(36);
     _previewTime       = Br.ReadUInt32();
     _previewDuration   = Br.ReadUInt32();
     _posterTime        = Br.ReadUInt32();
     _selectionTime     = Br.ReadUInt32();
     _selectionDuration = Br.ReadUInt32();
     _currentTime       = Br.ReadUInt32();
     NextTrackId        = Br.ReadUInt32();
 }
예제 #4
0
 public override void Read()
 {
     if (Size >= 8)
     {
         Document.MediaFile.SeekAhead(4);
         var type = Br.ReadUInt32();
         if (type == DATA)
         {
             Document.MediaFile.SeekBehind(4);
             _stringData = Br.ReadBytes((int)(Size - 8 - 4)).BytesToString();
         }
         else
         {
             Document.MediaFile.SeekBehind(8);
             base.Read();
         }
     }
     base.Read();
 }
예제 #5
0
 public string ReadString(int l) => Encoding.ASCII.GetString(Br.ReadBytes(l));