Quantcast
Channel: Intel® Fortran Compiler
Viewing all articles
Browse latest Browse all 3270

BITMAP IMAGES

$
0
0

Steve:

I was looking to use some Fortran code to fill in BITMAP arrays and then export the image to a BMP file.  I found a couple of sample codes online, one from a Stanford Prof is old school Fortran, but it works well.

I looked in the samples, but did not see anything of use.  I looked at the Forum posts from 2002 onwards, but this is a lot of QUICKWIN stuff and I do not enjoy that route at all.

Are you aware of any simple plain code that will allow me to create BITMAPS in Fortran -- I tried the

 

module RCImageBasic
  implicit none
 
  type rgbimage
     integer, dimension(:,:), pointer :: red, green, blue
     integer :: width, height
  end type rgbimage
 
  type rgb
     integer :: red, green, blue
  end type rgb
 
  interface operator (==)
     module procedure rgbequal
  end interface
 
  interface operator (.dist.)
     module procedure colordistance
  end interface

but it saves as a PPM, which needs GIMP and I prefer Paint.net.

Any thoughts

JMN


Viewing all articles
Browse latest Browse all 3270

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>