Initial commit

This commit is contained in:
2025-11-01 23:54:33 -05:00
commit f397068f8d
44 changed files with 13027 additions and 0 deletions

22
examples/drawtext.cpp Normal file
View File

@@ -0,0 +1,22 @@
#include "TessesFrameworkGFX/TessesFrameworkGFX.hpp"
#include <cstdlib>
using namespace Tesses::Framework;
using namespace Tesses::Framework::Graphics;
using namespace Tesses::Framework::Graphics::ImageFormats;
using namespace Tesses::Framework::Streams;
int main(int argc, char** argv)
{
TF_InitWithConsole();
Image img;
std::string text=argv[1];
auto strm = std::make_shared<FileStream>(argv[2],"wb");
img.SetSize((uint32_t)GetCharWidth(text.size()),CharHeight+2,Colors::White);
img.DrawString(text,Point(0,1),Colors::Black);
Formats::Png.Save(strm,&img);
}