]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/image.h
Allow images to have padding between rows
[libs/gui.git] / source / graphics / image.h
index 6905461a49557ed64df428902e538d85a9d271fc..29fd288c5634ca96a0b26c604b0cb56968ee89a3 100644 (file)
@@ -19,6 +19,7 @@ public:
                PixelFormat fmt;
                unsigned width;
                unsigned height;
+               unsigned stride;
                char *data;
 
                Data();
@@ -36,6 +37,7 @@ public:
        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; }
 };