Hi all,
I need to draw a bitmap and save it in a .bmp (or mbm) file.
In particular, i want to draw a text on a file .mbm, save it and display on the screen.
How we can draw on a file .bmp (or mbm)?
Thanks!
Hi all,
I need to draw a bitmap and save it in a .bmp (or mbm) file.
In particular, i want to draw a text on a file .mbm, save it and display on the screen.
How we can draw on a file .bmp (or mbm)?
Thanks!
It's easy..
1. Create a CFbsBitmap, CFbsBitGc, CFbsBitmap Device
( Check off-screen bitmap/Double buffering concepts)...
2. With CFbsBitGc(after associating with a bitmap) You can use
CFbsBitGC:rawText() function..Check it out..
3. Once you are done with step 1 and 2
CFbsBitmap->Save("your .mbm file name")...
4. If you want in .bmp file use CImageEncoder...
Check the wiki for all the above..