Re: Opening a PPM file Image



hi norbert that is exactly what i need to know. I need your expertice
regarding these. Base on my knowledge i know how to open a bitmap and
place it on handle then attach the bitmap and select it on the device
context and view it using bitblt funtion.

how can i read a PPM file by using CFile?
- how can i access P6?
- how can i access the width and length?

how can i interpret the ppm data and convert into bitmap?
how can i covert color values and put them into pixels into a window
bitmap?

thank you so much




Norbert Unterberg wrote:
dacky schrieb:
how about for an algorithm?

See http://netpbm.sourceforge.net/doc/ppm.html

The algorithm could be:

open file
read file data
interpret file data and convert to bitmap
close file

You can't expect from the comunity to write your code and do your homework.
So can you specify what exactly your problems are with reading a PPM file?
Are you having problems with file I/O? Do you need to know how to convert the
color values, or how to put pixels into a Windows bitmap?

You need to be more specific.

Norbert

.