Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 136,480 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,709 people online right now. Registration is fast and FREE... Join Now!




Image handling help

 
Reply to this topicStart new topic

Image handling help, Can c++ get an image's size and name?

devilsson2010
4 Mar, 2008 - 10:25 AM
Post #1

New D.I.C Head
*

Joined: 2 Jan, 2008
Posts: 43


My Contributions
I work with websites a lot and I always use the javascript image preload script (pic1= new Image(781,2); pic1.src= "background.jpg"). But the thing is that when you have 50+ pictures it is annoying to write it all out. I made a crappy c++ program that would take the name and size that you put in input.txt and then put it in the javascript image preload form and write it to output.txt, so then you just needed to write down the name and image size. But that still takes forever, so I decided that I wanted to make a c++ program that did it all automatically but I couldn't find much at all on image handling in c++. So I this question:

Is it possible to read the image type, height, width, and name of an image.
User is offlineProfile CardPM
+Quote Post

DeXPeriX
RE: Image Handling Help
11 May, 2008 - 09:16 AM
Post #2

New D.I.C Head
*

Joined: 11 May, 2008
Posts: 1



Thanked: 1 times
My Contributions
Yes, it is possible.

For JPEG and PNG images you can use my unit:
http://dexperix.net/sources/imagesize+blp+en.html

And for each image type you can download another fully functional libraries. Google will help smile.gif
User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/2/08 06:50PM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month