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

Fortran for Windows, graphics

dboggs
New Contributor I
1,362 Views

Reading the documentation, I can see how to create a graphic image on the screen. I can see how to save that image as a bmp file. But I want to save images that have a much higher resolution than my screen. Is this possible?

I am presently using an old Microsoft DOS Fortran compiler, with the HALO graphics library. This library allowed creation of a "virtual raster interface" i.e. a virtual "screen" that existed only in memory. The resolution of that "screen" was limited only by memory. Using it I can create high-resolution graphics that look great when printed.

Another possibility would be to save the image as a vector type, say an enhanced metafile, as is possible in Matlab. But the documentation says nothing about this.

I hope there is some way to do this using Intl Fortran. This is a make-or-break issue for me. Can somebody please help?

0 Kudos
1 Reply
jugoslavdujic2
Beginner
1,362 Views
You have to use Windows APIs for that.

I created a wrapper library, called Xeffort, which much simplifies the task. Here's a really simple sample which creates a "virtual screen" (Memory Device Context in Win32 parlance), draws to it, and saves it as .bmp format. It uses "Lite" (i.e. just a single .f90 source file) version of module XFTGDI.f90. For saving .wmf files, see the XeffortLite sample.

You can download the latest version of the full library and/or documentation here. (See the caveat.)
0 Kudos
Reply