Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Auto resize BMP's

Status
Not open for further replies.

shiggyshag

Programmer
Dec 14, 2001
227
0
0
GB
HI

I wish to resize BMP's.

I want to get the path of the bmp's resize them and save them to a new directory

Any ideas on where to start would be great

Cheers
 
Try using the common dialog control because this control has two properties which you might find useful. The "FileName" property and the "FileTitle". The "FileName" property will give you the path and name of the file, and the "FileTitle" property will provide you with just the name of the file.
And if you want to save them to a new directory just use the commmon dialog control again to save the file.
You will only need the one dialog box because you can reuse it for all the dialog boxes required for the form.

Examples:
To open an open dialog box.
CommonDialog1.ShowOpen

To open a save dialog box.
CommonDialog1.ShowSave

If you are trying to resize the bitmaps, I'm not sure how to change the actual file information.
 
There is a piece of software on the net that I downloaded for free that does what you are describing very well. Resizing, rotating, croping, etc.. It is only about 500kb zipped. It is called ASquareImage. You can search for 'ASquareImage' or 'asqi10.zip' on the net. If you don't find it let me know and I can email it to you. Thanks and Good Luck!

zemp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top