Clean image types

This commit is contained in:
James Grogan 2022-11-11 16:32:55 +00:00
parent e7683cd94e
commit c6d03f16d0
18 changed files with 169 additions and 107 deletions

View file

@ -3,9 +3,9 @@
#include <memory>
#include "INativeDrawingSurface.h"
#include "Image.h"
class Grid;
class Image;
class DrawingSurface
{
@ -26,12 +26,12 @@ public:
void Paint(Grid* grid);
Image* GetAsImage() const;
Image<unsigned char>* GetAsImage() const;
private:
unsigned mWidth = 0;
unsigned mHeight = 0;
std::unique_ptr<Image> mImageBuffer;
std::unique_ptr<Image<unsigned char> > mImageBuffer;
std::unique_ptr<INativeDrawingSurface> mNativeDrawingSurface;
};