| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
hey
im going to attempt to write a program where you can add all of your photos by name or folder, type in a width and height, and the program runs through them all, resizing them to the inputted hieght and width. does anyone know how to tell the computer to resize a photo and save it again? if thats too much to ask, let me know, im really new to C++ and for all i know that could be one line of code or a hundred. anyways, if somebody can tell me how to do that, i think i know how to do the rest. if not, screw the photo resizing thing, ill make a calculator or something. thanks alot |
|
#2
|
|||
|
|||
|
For resizing, I want to know what file format are you using? Ex: BMP,JPEG,TIF etc..
Resizing is simplest for BMP files due to its simple structure. Here, you need to take out DIB and modify the dimensions.All file formats give you the flexibility to fiddle with their data iff you adhere to their basic structure. I advise you to write program in Visual C environment. There the structures for BITMAP and BMP are in built.For more reference go to MSDN. Regarding the details as input by user, you can make an interface in VB or VC. |
|
#3
|
|||
|
|||
|
hey thanks man, ill do that.
i was gona use jpegs but that doesnt really matter, i can just convert them first. thanks again |
![]() |
| Viewing: Dev Articles Community Forums > Programming > C/C++ Help > photo resizing program |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|