By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,018 Members | 870 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,018 IT Pros & Developers. It's quick & easy.

handling / resizing images (jgp, gif...) in vcpp 6.0

P: n/a
Hello !

Does anyody know how to load and resize jpg or gif files in a cpp 6.0
Project ?
Thanks in advance
Jul 19 '05 #1
Share this Question
Share on Google+
2 Replies

P: n/a

"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
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
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
will help.

Karl Heinz Buchegger
Jul 19 '05 #2

P: n/a
"Peter van Merkerk" <me*****> wrote in message
No one in this newsgroup has ever heard of jpg or gif files, since

they are
unknown in the C++ language. Furthermore, the people here only know

how to
to resize strings, vectors, deques and lists. Please try a more


Speak for yourself, some of us do actually have a life outside

In my post there was an amount of irony, which is known to not always travel
well through modems, cables and ISPs.


Jul 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.