- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
I tried loadimage but it seems to work only with file made by saveimage.
Thanks for help
Link Copied
5 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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).
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).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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,
www.freeimage.sf.net
It can load a wide range of image formats into
memory and is quite easy to use,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page