#include <stdexcept>
#include <string>
-#include <msp/io/base.h>
+#include <msp/io/seekable.h>
#include "pixelformat.h"
namespace Msp {
PixelFormat fmt;
unsigned width;
unsigned height;
+ unsigned stride;
char *data;
Data();
public:
void load_file(const std::string &);
- void load_io(IO::Base &);
+ void load_io(IO::Seekable &);
void load(ImageLoader &);
PixelFormat get_format() const { return data.fmt; }
unsigned get_width() const { return data.width; }
unsigned get_height() const { return data.height; }
+ unsigned get_stride() const { return data.stride; }
const void *get_data() const { return data.data; }
};