•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Visual Basic 4 / 5 / 6 section within the Software Development category of DaniWeb, a massive community of 374,461 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,786 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Visual Basic 4 / 5 / 6 advertiser:
Views: 3694 | Replies: 4
![]() |
•
•
Join Date: Oct 2005
Posts: 45
Reputation:
Rep Power: 3
Solved Threads: 0
i have different sige of photo files which was scanned through a scaner and save as *.jpg file , now i want to use all this files in a form made in vb6 where i want to link all these files trough data base so that i can see each photos one by one . but these file has different width and hight but in my form i have make a fix space , so i want to make all these photo files of same width and hight to fit and defined space . but i want this through some program , because this photos are approx. 40000. so manually is not possible. pls help me.
•
•
Join Date: Dec 2004
Location: Lincoln Park, Michigan
Posts: 1,744
Reputation:
Rep Power: 7
Solved Threads: 107
Yes, But it's a lot more detailed and complex than you might think. Basically, I've devised a way using the API (StretchBlt) That shows how you can copy an image from a picture box, to another picturebox, changing size from one to the other. A Few things to note, is that the quality diminishes during this process (quality of the picture) AND the picture must be visible in order to copy from it. This project loads an image into form2, and when you click the button, makes form2 visible (makes the picture visible), and then copies it to the picturebox on form1, and then hides form2.
As you can see, this would be intensive on the processor, and probably take up quite a bit of RAM. I'm still devising a way to use objects or API Calls to specific graphic programs that would allow for better picture quality and faster processing, but for now, this is how to use the stretchblt API.
As you can see, this would be intensive on the processor, and probably take up quite a bit of RAM. I'm still devising a way to use objects or API Calls to specific graphic programs that would allow for better picture quality and faster processing, but for now, this is how to use the stretchblt API.
•
•
Join Date: Oct 2005
Posts: 45
Reputation:
Rep Power: 3
Solved Threads: 0
thank u Comatose
it is nice solution , but i want in my project that first i will make all the available jpg files of same size than i will use these files in my project form directly by applying simply a path of that file , so i need that type of converter which will make all available jpg file to same size
it is nice solution , but i want in my project that first i will make all the available jpg files of same size than i will use these files in my project form directly by applying simply a path of that file , so i need that type of converter which will make all available jpg file to same size
•
•
Join Date: Dec 2004
Posts: 207
Reputation:
Rep Power: 4
Solved Threads: 8
•
•
•
•
Originally Posted by jto
i have different sige of photo files which was scanned through a scaner and save as *.jpg file , now i want to use all this files in a form made in vb6 where i want to link all these files trough data base so that i can see each photos one by one . but these file has different width and hight but in my form i have make a fix space , so i want to make all these photo files of same width and hight to fit and defined space . but i want this through some program , because this photos are approx. 40000. so manually is not possible. pls help me.
Two thoughts.
- Change the size in a photo editor.
- Make a blank (white or black) space larger than the photo, then do the equivalent of pasting the photo into it.
•
•
•
•
Originally Posted by Real-tiner
Two thoughts.
- Change the size in a photo editor.
- Make a blank (white or black) space larger than the photo, then do the equivalent of pasting the photo into it.
I would make a blank square. where the photos could fit, landscape or portrait. Paste all into blank square , then batch resize.
Watch for compression change. some will compress original too much and you have a lot of 'jaggies' or unusable image. (Keep at 100% for your existing quality)
I had to place over 3000 images of albums in The Complete Motown www.kegtapper.net/TCMC and it was a learning experience. Though I only had to work with smaller sized images.
Last edited by Kegtapper : Dec 8th, 2005 at 9:06 am. Reason: spelling error
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb Visual Basic 4 / 5 / 6 Marketplace
•
•
•
•
api apple asm assembly x86 programming hla demo blogger blogging c c++ ccna cocoa code coding competition compiler compilers computer debugging developer development errors evaluation framework gdata google high-performance innovation java languages linerider mcse microsystems networking news next object online open oriented planning platform practices programming python rss software step steps sun tools tutorials xml
- C language (C++)
- Cant save as a JPG file from IE (Web Browsers)
- The size of images change on different pcs (Site Layout and Usability)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: cards.dll via qcard32.dll
- Next Thread: Opening Outlook Template



Linear Mode