Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Graphics resolution

dboggs
New Contributor I
896 Views

Is there any way to create a graphics file having a resolution greater than my screen? How about a vector-based line drawing (say wmf or emf) instead of bitmapped?

0 Kudos
4 Replies
g_f_thomas
Beginner
896 Views
Quoting - dwboggs@aol.com

Is there any way to create a graphics file having a resolution greater than my screen? How about a vector-based line drawing (say wmf or emf) instead of bitmapped?

Yes. Create eps figures via gnuplot.

Gerry

0 Kudos
dboggs
New Contributor I
896 Views
Quoting - g.f.thomas

Yes. Create eps figures via gnuplot.

Gerry

0 Kudos
dboggs
New Contributor I
896 Views
Quoting - dwboggs@aol.com

Thanks, but I really need tighter integration with the code. My (limited) understanding of gnuplot is that my Fortran code needs to save the data "somewhere" and then call gnuplot to make the plot--or do I have to do that myself? At any rate, my perusal of the Fortran manual says nothing about gnuplot.

On the other hand, I read in a CVF book that it is very easy to "record" the various graphics calls to an emf file. All that is apparently necessary is to create the file, then call the very same routines that were used to draw on the screen, and Presto! you have an emf file that can be inserted in many Windows applications (Word etc.). This is exactly what I need. Unfortunately, the CVF book described this only in the context of a Win32 application, but not for a QuickWin application or if I am using OpenGl graphics calls.

Does anyone out there know if this emf method works in those cases? And if you have experience with this, how well does it work?

0 Kudos
Paul_Curtis
Valued Contributor I
896 Views
Quoting - dwboggs@aol.com

Is there any way to create a graphics file having a resolution greater than my screen? How about a vector-based line drawing (say wmf or emf) instead of bitmapped?

To make a drawing in Win32, you first create a Device Context, which usually defaults to match the current screen resolution. However, a DC can be given arbitrary size, and you can thus create and write to bitmaps on the (virtual, in memory) DC of any extents you need. Here is some chat from the MSDN discussion of the CreateCompatibleDC function:

"A memory DC exists only in memory. When the memory DC is created, its display surface is exactly one monochrome pixel wide and one monochrome pixel high. Before an application can use a memory DC for drawing operations, it must select a bitmap of the correct width and height into the DC. To select a bitmap into a DC, use the CreateCompatibleBitmap function, specifying the height, width, and color organization required"

I would not recommend trying this from within the confines of Quickwin (ie, you need a real Win32 app. for this).

0 Kudos
Reply