X-Git-Url: http://git.tdb.fi/?p=libs%2Fgui.git;a=blobdiff_plain;f=source%2Fgraphics%2Fimage.h;h=51147cefdcf341a882a426933efe52576721d155;hp=7b5236ecd4f30c151c9c42148e955086c73cc17b;hb=917c43de100807f4397e36b66b1a748dbf44370e;hpb=054fca09f0bbd64fdbd6406a0643de938a9cd4fb diff --git a/source/graphics/image.h b/source/graphics/image.h index 7b5236e..51147ce 100644 --- a/source/graphics/image.h +++ b/source/graphics/image.h @@ -20,6 +20,7 @@ public: unsigned width; unsigned height; unsigned stride; + char *owned_pixels; char *pixels; Data(); @@ -35,6 +36,7 @@ public: void load_file(const std::string &); void load_io(IO::Seekable &); void load(ImageLoader &); + void load_into(ImageLoader &, void *); void load_headers(ImageLoader &); PixelFormat get_format() const { return data.fmt; }