public Reader(Stream file, WipMetaData info) { m_length = info.FrameSize; // int stride = (int)info.Width*((info.BPP+7)/8); int stride = (int)info.Width * 4; m_data = new byte[stride * (int)info.Height]; m_input = new BinaryReader(file, Encoding.ASCII, true); }
public Reader(IBinaryStream file, WipMetaData info) { m_length = info.FrameSize; // int stride = (int)info.Width*((info.BPP+7)/8); int stride = (int)info.Width * 4; m_data = new byte[stride * (int)info.Height]; m_input = file; m_input.Position = 8 + 24 * info.FrameCount; if (8 == info.BPP) { Palette = ReadColorMap(file.AsStream, 0x100, PaletteFormat.RgbX); } }
public Reader(Stream file, WipMetaData info) { m_length = info.FrameSize; // int stride = (int)info.Width*((info.BPP+7)/8); int stride = (int)info.Width*4; m_data = new byte[stride * (int)info.Height]; m_input = new ArcView.Reader (file); }