unfortunatly bhagyesht's comment did not help :o(
Please close none the less.
Main Topics
Browse All TopicsHi,
I've created an application to save a picture from a webcam as a BMP, but this image is saved at 320x240 pixels.
What i would like to do is after saving this image, have vb open it up in a non visible picture box if need be, and save then crop 64pixels off the right & left of the image... giving the centre of the image. I'm certain this can be done, I just need some examples or someone to point me in the right direction as i'm in that lost puppy stage at the moment!
The final dimentions of the image need to be: 192 x 240
After the image has been cropped, i'd like it to be saved as a JPG file.
This is a quick example of what i mean (if what i wrote didnt make sense)...
==========================
= 64 = 194 = 64 =
= 64 = 194 = 64 =
= 64 = 194 = 64 =
= 64 = 194 = 64 =
= 64 = 194 = 64 =
= 64 = 194 = 64 =
= 64 = 194 = 64 =
= 64 = 194 = 64 =
= 64 = 194 = 64 =
= 64 = 194 = 64 =
= 64 = 194 = 64 =
==========================
so in effect all i want in the centre of the image... 64 pixels taken off the right & left then saved as a JPG.
If anyone can help i'd be so so so greatful!!
UKKrew.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
well the problem still stands - i can capture the image via an ocx control... then make this control save the bmp... but it saves as 320 x 240... where as i want it to save as 192 x 240 - the next problem comes as i want the file saved as a JPG file rather than a BMP file... its a tough one, and all the help is welcome.
I've asked others on EE what they thought and one guy got back to me saying that i should look into the Kodak edit control (it comes with vb6) as this should allow me to do what i want if i read the file in after saving it and then did the edit and somehow saved it... but he wasnt too sure.
The ocx control i am using is to capture from webcams etc and is available for free download from: http://www.shrinkwrapvb.co
Thanks in advance for any help you can offer :)
Aidan.
ok I understand the problem as u want to resize the image and not crop it. Also you want to save the image as jpg instead of bmp. if this assumption is correct please download jangraphics.dll from http://jansfreeware.com/jf
if this was not a correct assumption please write it, will respond back
ps thanks for the points
Regards,
Bhagyesh
Business Accounts
Answer for Membership
by: bhagyeshtPosted on 2004-07-28 at 03:08:49ID: 11654532
check this I have done something similar though not 100% what u need but u should get a start. e.com/Prog ramming/Q_ 20740700.h tml
http://www.experts-exchang
Regards,
Bhagyesh