"Bernhard Gsöllpointner" wrote:
Hello !
Does anyody know how to load and resize jpg or gif files in a cpp 6.0
Project ?
open the file
start reading the header information. Usually the header information
contains some members telling you how big the image is going to be.
Allocate memory to hold the image
continue reading and decode the image from the file format to your memory
format
close the file
resize the image in memory
open a new file for writing
write the header
write the image data, encoding the memory image according to the file
format
close the output file
As for how to do:
interpret and write the header
encode and decode the image format
techniques for resizing an image
C++ has no concept for those. But doing a search on google
http://www.google.com
will help.
--
Karl Heinz Buchegger
kb******@gascad.at