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.

LoadImage

sumitm
Beginner
645 Views
Hi,

I was trying to load an initial image on my application that also uses opengl.

The call
res= loadimage("test.bmp",1,1)
gives the following error
Error: The same named entity from different modules and/or program units cannot be referenced. [LOADIMAGE]
C:SBO_50ptsmenus.f90(56) : Error: There is no matching specific function for this generic function reference. [LOADIMAGE]

The option loadimage_w however works fine. I created a separate test application without linking to the opengl libraries and loadimage works now.

I believe that opengl has a similar function named as loadimage that may be conflicting.
If that is the case (I may be wrong) can I request Intel Fortran to change the name of LoadImage to something like Load_Image in DFLIB in the next version.

Also if my starting image (test.bmp) has a resolution more the current screen resolution (1280x1168 original and 1152x864 on my desktop) , the image does not load (display) . What happens when I use a (PROXIMA type) projector for my laptop and the projector screen resolution is lower than my laptop screen resolution. Will it not work?

Thanks for any advice

Sumit


0 Kudos
3 Replies
Steven_L_Intel1
Employee
645 Views
LOADIMAGE is a routine in DFLIB. If you use DFLIB and another module that defines a routine by the same name, use ONLY or renaming clauses to prevent both names from being visible.

This is the right way to do it - not trying to guess what other packages might name things.

Steve
0 Kudos
sumitm
Beginner
645 Views
Thanks Steve!
Any comments about image resolution would be appreciated.
Especially if another application is going to hand me the bitmaps. Any 24bit bitmap would do? (256 colors, 16 colors restrictions?).
Thanks
0 Kudos
Steven_L_Intel1
Employee
645 Views
Sorry, can't help with the resolution issue. I have no experience in this area of Windows programming.

Steve
0 Kudos
Reply