コード例 #1
0
ファイル: ImageWIP.cs プロジェクト: tenyuhuang/GARbro
            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);
            }
コード例 #2
0
ファイル: ImageWIP.cs プロジェクト: y111303tut/GARbro
            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);
                }
            }
コード例 #3
0
ファイル: ImageWIP.cs プロジェクト: Casidi/GARbro
 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);
 }