1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:37:35 +00:00

Add a CBitmap class. The C is for Courage.

This commit is contained in:
Andreas Kling 2018-10-12 12:49:45 +02:00
parent e23ac56017
commit c7463aad11
8 changed files with 63 additions and 18 deletions

17
Widgets/CBitmap.cpp Normal file
View file

@ -0,0 +1,17 @@
#include "CBitmap.h"
CBitmap::CBitmap(const char* asciiData, unsigned width, unsigned height)
: m_bits(asciiData)
, m_size(width, height)
{
}
CBitmap::~CBitmap()
{
}
RetainPtr<CBitmap> CBitmap::createFromASCII(const char* asciiData, unsigned width, unsigned height)
{
return adopt(*new CBitmap(asciiData, width, height));
}