Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Comunicados
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.

load bitmaps

Intel_C_Intel
Funcionário
1.346 Visualizações
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 Respostas
pcurtis
Principiante
1.346 Visualizações
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).
alfredodell
Principiante
1.346 Visualizações
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,
Intel_C_Intel
Funcionário
1.346 Visualizações
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

Franklin_S_
Principiante
1.346 Visualizações

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

Steven_L_Intel1
Funcionário
1.346 Visualizações
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.
Responder