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

load bitmaps

Intel_C_Intel
Employee
1,298 Views
During runtime, I need to load images from files (either .bmp, .tif or .jpg) and display them on the screen.

I tried loadimage but it seems to work only with file made by saveimage.

Thanks for help
0 Kudos
5 Replies
pcurtis
Beginner
1,298 Views
The attached code contains functions to read, display and print standard Windows bitmap (ie, *.bmp) image files. This is relatively straightforward using the native win32 API functions for bitmap operations.

Similar operations with .tif and .jpg formats are not included in the Windows API, and require external library functions. I am not aware of any available F90 code for these image types (and have not had sufficient need for it to bother rewriting the various C routines which can be found for this purpose).
0 Kudos
alfredodell
Beginner
1,298 Views
You can load the required software from
www.freeimage.sf.net
It can load a wide range of image formats into
memory and is quite easy to use,
0 Kudos
Intel_C_Intel
Employee
1,298 Views
For Intel Fortran users you can use the Intel Array Visualizer libraries to load jpeg, bmp, png, or gif files. I've attached an example program here. Note that the same code will work regardless of the image format.

John

0 Kudos
Franklin_S_
Beginner
1,298 Views

Sorry but i'm new here. You referred to attached code, but I couldn't see how to access it. Please let me know how to retrieve your attachment.

Thanks,

Frank

0 Kudos
Steven_L_Intel1
Employee
1,298 Views
Sorry, that attachment is no longer available, and the Array Visualizer is no longer a part of the product. You may want to ask in the Array Visualizer section of this forum - the software is available as a free download.
0 Kudos
Reply