public void ReadCEParsedBitmap(ref Meta meta)
{
using (BinaryReader BR = new BinaryReader(meta.MS))
{
int tempr;
if (meta.Map.MetaInfo.external[meta.TagIndex])
{
BR.BaseStream.Position = 96;
int tempc = BR.ReadInt32();
tempr = BR.ReadInt32();
headersize = tempr;
Properties = new BitmapInfo[tempc];
for (int x = 0; x < tempc; x++)
{
Properties[x] = new BitmapInfo(tempr + (48 * x), ref meta);
}
}
else
{
BR.BaseStream.Position = 96;
int tempc = BR.ReadInt32();
tempr = BR.ReadInt32() - meta.Map.PrimaryMagic - meta.Map.MetaInfo.Offset[meta.TagIndex];
headersize = tempr;
Properties = new BitmapInfo[tempc];
for (int x = 0; x < tempc; x++)
{
Properties[x] = new BitmapInfo(tempr + (48 * x), ref meta);
}
}
}
}