FreeType2 Bitmap to System::Drawing::Bitmap.
- by Dennis Roche
Hi,
I'm trying to convert a FreeType2 bitmap to a System::Drawing::Bitmap in C++/CLI.
FT_Bitmap has a unsigned char* buffer that contains the data to write.
I have got somewhat working save it disk as a *.tga, but when saving as *.bmp it renders incorrectly.
I believe that the size of byte[] is incorrect and that my data is truncated.
Any…