From f3ee4be63e1c78c6f09fcb994b124533b1e5d3c1 Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 15 Oct 2018 19:43:01 +0800 Subject: =?UTF-8?q?*=E6=9B=B4=E6=96=B0=E5=9B=BE=E5=BD=A2=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/libjin/Graphics/Bitmap.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/libjin/Graphics/Bitmap.h') diff --git a/src/libjin/Graphics/Bitmap.h b/src/libjin/Graphics/Bitmap.h index 553d999..6264c37 100644 --- a/src/libjin/Graphics/Bitmap.h +++ b/src/libjin/Graphics/Bitmap.h @@ -15,6 +15,7 @@ namespace graphics class Bitmap { public: + static Bitmap* createBitmap(const void* pixel, unsigned width, unsigned height); static Bitmap* createBitmap(const void* imgData, size_t size); static Bitmap* createBitmap(int w, int h, Color color = Color::BLACK); static Bitmap* clone(const Bitmap* bitmap); @@ -37,10 +38,10 @@ namespace graphics protected: Bitmap(); - Bitmap(int w, int h); + Bitmap(unsigned w, unsigned h); Color * pixels; - int width, height; + unsigned width, height; }; -- cgit v1.1-26-g67d0