I would like to read a PNG image file using Fortran and store the data
in an array. Does anyone know a library or bunch of code or a blueprint for how to do that?
I would like to read a PNG image file using Fortran and store the data.
in an array. Does anyone know a library or bunch of code or a blueprint for how to do that?
On 11/20/2021 1:34 PM, ali_n...@yahoo.com wrote:
I would like to read a PNG image file using Fortran and store the data
in an array. Does anyone know a library or bunch of code or a blueprint for how to do that?
The easiest method I use is probably too expensive for you, but it is a tailor made Fortran GUI/graphics API for windows (www.gino-graphics.com
just in case). Not super easy.
But here are some hints perhaps for windows:
https://stackoverflow.com/questions/4567875/how-would-i-load-a-png-image-using-win32-gdi-no-gdi-if-possible
On Sunday, November 21, 2021 at 6:34:20 AM UTC+11, ali_n...@yahoo.com wrote:
I would like to read a PNG image file using Fortran and store the data.
in an array. Does anyone know a library or bunch of code or a blueprint for how to do that?
There are examples of writing picture files in
"Introduction to Fortran 90/95, Algorithms, and Structured Programming".
The file is defined as direct access, unformatted, and with a record length of 1.
For reading in a picture file, the array would be defined as CHARACTER(1).
I would like to read a PNG image file using Fortran and store the data
in an array. Does anyone know a library or bunch of code or a blueprint for how to do that?
On Sunday, November 21, 2021 at 7:11:40 AM UTC+3:30, Robin Vowels wrote:.
On Sunday, November 21, 2021 at 6:34:20 AM UTC+11, ali_n...@yahoo.com wrote:
I would like to read a PNG image file using Fortran and store the data.
in an array. Does anyone know a library or bunch of code or a blueprint for how to do that?
There are examples of writing picture files in
"Introduction to Fortran 90/95, Algorithms, and Structured Programming". The file is defined as direct access, unformatted, and with a record length of 1.
For reading in a picture file, the array would be defined as CHARACTER(1).
Thanks for your comment..
I know how to read data. But converting an image (especially a PNG) to an array is different.
There is a structure for data. That structure makes reading difficult.
I would like to read a PNG image file using Fortran and store the data
in an array. Does anyone know a library or bunch of code or a blueprint for how to do that?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 159 |
Nodes: | 16 (0 / 16) |
Uptime: | 98:00:47 |
Calls: | 3,209 |
Files: | 10,563 |
Messages: | 3,009,574 |