Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

bitmap graphics text

David_DiLaura
Beginner
468 Views
I have an Fortran application that calculates shaded images of architectural interiors and produces bitmap files that these images. I would like to add some text to these images. I do all this without using QuickWin, since I need to produce a DLL. Does anyone know of available Fortran routines/libraries to generate text in a bitmap. I'd just as soon not work with Windows APIs.
0 Kudos
1 Reply
Jugoslav_Dujic
Valued Contributor II
468 Views
See XFTGDI on my home page. Briefly, you should:
XCreateBitmap to load the bitmap from .bmp file
XMemoryDC to create a canvas (DC) in memory
XPlaceBitmap to place the bitmap onto the canvas
XDeleteBitmap to delete it (you'll no longer need it)
XSetFont to set font
XTextOut to print the text onto the canvas
XGetBitmap to get the modified bitmap
XSaveBitmap to save it to disk
XDeleteBitmap to delete it
XDeleteDC to delete the canvas (DC)


Jugoslav
0 Kudos
Reply