Resizing JPG files in Picture Control VB5 
Author Message
 Resizing JPG files in Picture Control VB5

Hi there,

Can anyone tell me how a JPG file can be automlatically resized to the
HEIGHT and WIDTH
of a Picture Control in Visual Basic 5.

Robbert de GROOT

Paris/France



Sat, 14 Jul 2001 03:00:00 GMT  
 Resizing JPG files in Picture Control VB5
the image control can do this.  Set stretch property to True.  Don't know of
way to do this via pic control.


Quote:

>Hi there,

>Can anyone tell me how a JPG file can be automlatically resized to the
>HEIGHT and WIDTH
>of a Picture Control in Visual Basic 5.

>Robbert de GROOT

>Paris/France

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Kevin McCracken

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-



Sun, 15 Jul 2001 03:00:00 GMT  
 Resizing JPG files in Picture Control VB5

Quote:

> Hi there,

> Can anyone tell me how a JPG file can be automlatically resized to the
> HEIGHT and WIDTH
> of a Picture Control in Visual Basic 5.

> Robbert de GROOT

> Paris/France

Try setting the Autosize Property to True.


Sun, 15 Jul 2001 03:00:00 GMT  
 Resizing JPG files in Picture Control VB5
That does it the other way round (it sizes the box to fit the picture). Here
is one way to resize the picture to fit the box:

Picture1.Picture = LoadPicture("c:\mypic.jpg")
Picture1.AutoRedraw = True
Picture1.PaintPicture Picture1.Picture, 0, 0, Picture1.ScaleWidth,
Picture1.ScaleHeight
Picture1.Picture = Picture1.Image

Mike

Quote:


>> Hi there,

>> Can anyone tell me how a JPG file can be automlatically resized to the
>> HEIGHT and WIDTH
>> of a Picture Control in Visual Basic 5.

>> Robbert de GROOT

>> Paris/France

>Try setting the Autosize Property to True.



Mon, 16 Jul 2001 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Copy gif and jpg file in picture control to picture control

2. Copy gif and jpg file in picture control to picture control

3. Copy gif and jpg file in picture control to picture control

4. Copy gif and jpg file in picture control to picture control

5. jpg image quality in vb5 picture control

6. Resize JPG Picture

7. Picture Control Pic To JPG File ???

8. GIF/JPG in Resource File to Picture control

9. HOWTO: GIF/JPG in Resource File to Picture control

10. HOWTO: GIF/JPG in Resource File to Picture control

11. GIF/JPG in Resource File to Picture control

12. Resize JPG image and save as new JPG?

 

 
Powered by phpBB® Forum Software