473,507 Members | 3,112 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Resizing graphic files in Image or Picture Boxes

9 New Member
Hello everyone,

This is my first post here, and was hoping someone could lead me on the right track to quality resizing of drawing files like .bmp .jpg etc in VB6 Image or Picture boxes. I'm writing a design program and need my width, height and depth variables to influence the size of the graphic files. I need to make them true to scale. Thank you in advance for any help offered.

Robert
Oct 20 '07 #1
4 1522
debasisdas
8,127 Recognized Expert Expert
Try using the image control .with this control you can stretch the image.
Oct 21 '07 #2
Killer42
8,435 Recognized Expert Expert
Also, you may want to investigate the PaintPicture method.
Oct 21 '07 #3
robertko2
9 New Member
Try using the image control .with this control you can stretch the image.
Thank you for your input. I've been using image controls, but since the image width can vary substancially the stretching and squishing doesn't look very good. I was hoping to find a way to maintain the drawings original quality.

Robert
Oct 22 '07 #4
Killer42
8,435 Recognized Expert Expert
Thank you for your input. I've been using image controls, but since the image width can vary substancially the stretching and squishing doesn't look very good. I was hoping to find a way to maintain the drawings original quality.
Depends on what you mean by "quality". If you just want to maintain the aspect ratio, simply adjust the height/width so that they maintain the same proportions.

For instance, if your original image is 300x150, and you shrink it to half the height (75), then the width should also be halved (150).
Oct 22 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

0
6833
by: Leonard Challis | last post by:
Good morning everyone I am currently doing quite a large project in VB6 and ACCESS for college, for a Photographers company assignment. I am posting here to see if anyone has any advice on what...
9
32028
by: Bryan R. Meyer | last post by:
Hello Everyone, The problem of browser resizing has become an issue for me. While redesigning my webpage, I set the left and right margins to be auto so that my content would be centered. ...
1
2915
by: Neil Woodvine | last post by:
***Scenario ... I have a DataList with a hyperlink WebControl in the Item Template. I want to display a 64x64 image in the Hyperlink and set the NavigateURL to the full size image. ***Source...
4
3257
by: James A Taber | last post by:
Problem resizing image.(JPG) If i try to resize an img with horisontal=150 and vertical resolution=150 The quality of the target image is dramatically reduced. Source code is provided below. ...
1
2485
by: ray well | last post by:
hi, i need to give the user the ability to extract a rectangular area of their choice from a graphic displayed in a picture box to the clipboard, so they can use it elsewhere. say the graphic...
1
1887
by: ray well | last post by:
i need to extract a rectangular area from a graphic image displayed in a PictureBox, to another PictureBox. how can i do that? i would appreciate a piece of code if possible. thanks, ray
1
9463
by: Brian | last post by:
Using A2K I have an image control on a report and use code to set the image.picture to the required jpg. 3 of the jpgs resize properly but 2 do not - they display much smaller than the image...
1
1595
by: larystoy | last post by:
Newbie to VB6, comfortable with HTML, MS Access so I ain't totally stupid. Maybe just dumb. Am writing a Biblical Quiz program where I need to change a picture and midi sound file each time a user...
14
3701
anfetienne
by: anfetienne | last post by:
hi.....i have this script (below #1) that is linked to another php file SimpleImage.php (#2) im trying to get it to work on my uploaded images but it keeps coming up errors.....i haven't altered...
0
7109
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7313
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7372
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7029
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5039
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3190
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
758
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
411
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.