Re: Opening a PPM file Image
- From: "dacky" <harvey.daclan@xxxxxxxxx>
- Date: 17 Oct 2006 01:04:27 -0700
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
.
- Follow-Ups:
- Re: Opening a PPM file Image
- From: Norbert Unterberg
- Re: Opening a PPM file Image
- References:
- Opening a PPM file Image
- From: dacky
- Re: Opening a PPM file Image
- From: Tony Thomas
- Re: Opening a PPM file Image
- From: dacky
- Re: Opening a PPM file Image
- From: Ajay Kalra
- Re: Opening a PPM file Image
- From: dacky
- Re: Opening a PPM file Image
- From: Norbert Unterberg
- Opening a PPM file Image
- Prev by Date: Re: error...with oledb connection string
- Next by Date: Re: error...with oledb connection string
- Previous by thread: Re: Opening a PPM file Image
- Next by thread: Re: Opening a PPM file Image
- Index(es):