Saving image stretch results? 
Author Message
 Saving image stretch results?
Hi,

I want to essentially create thumbnails within VB.  Is there a way to save
the smaller, stretched Image's Picture?

I found that doing a SavePicture on its picture property saves the image in
its original size.

Thanks for any pointers,
Robb



Tue, 14 Sep 2004 02:59:28 GMT  
 Saving image stretch results?
Before savepicture set the Picture of the control to its Image.

Max Bolingbroke


Quote:
> Hi,

> I want to essentially create thumbnails within VB.  Is there a way to save
> the smaller, stretched Image's Picture?

> I found that doing a SavePicture on its picture property saves the image
in
> its original size.

> Thanks for any pointers,
> Robb



Tue, 14 Sep 2004 03:07:14 GMT  
 Saving image stretch results?


Quote:
> Before savepicture set the Picture of the control to its Image.

I don't understand - do you mean doing this: (?)

set anImage.Picture = anImage.Picture
SavePicture anImage.Picture, filename



Tue, 14 Sep 2004 03:14:45 GMT  
 Saving image stretch results?
mmm, Load a picture (using LoadPicture()) into pic1.picture

Do a .PaintPicture of pic1.picture to pic2 and stretch it as desired

save pic2.image to disk - note that when using Savepicture(pic2.image...)
the resulting file will be a bitmap.

HTH,
Aris


Quote:
> Hi,

> I want to essentially create thumbnails within VB.  Is there a way to save
> the smaller, stretched Image's Picture?

> I found that doing a SavePicture on its picture property saves the image
in
> its original size.

> Thanks for any pointers,
> Robb



Tue, 14 Sep 2004 07:45:35 GMT  
 Saving image stretch results?


Quote:
> mmm, Load a picture (using LoadPicture()) into pic1.picture

> Do a .PaintPicture of pic1.picture to pic2 and stretch it as desired

> save pic2.image to disk - note that when using Savepicture(pic2.image...)
> the resulting file will be a bitmap.

Thanks - assuming I get this part working, it looks like VB will save the
file as a BMP.  Does VB have a GIF or JPEG encoder?

Robb



Tue, 14 Sep 2004 07:01:45 GMT  
 Saving image stretch results?

Quote:


> Thanks - assuming I get this part working, it looks like VB will save the
> file as a BMP.  Does VB have a GIF or JPEG encoder?

Nope! But there is a free DLL (written by the good people at Intel) that you
can use from VB and that will save pictures as Jpegs for you. I can't
remember the url address, but I'm sure somebody here will come up with it.

Mike



Tue, 14 Sep 2004 08:32:46 GMT  
 Saving image stretch results?

Quote:
> http://appsr.intel.com/scripts-df/Product_Filter.asp?ProductID=240

Thanks!


Wed, 15 Sep 2004 01:42:47 GMT  
 
 [ 8 post ] 

 Relevant Pages 

1. Apply a stretched image as a listview background

2. auto stretch a image in picturebox to a correct ratio

3. Stretched Image on PictureBox?

4. How to stretch image?

5. Strange Distortion of Image with Stretch = True

6. image/picture control - stretch info

7. stretching Images in VB5

8. what algorithm is behind Image Stretch?

9. Image stretching

10. How to Resize/Stretch images in an ImageList

11. VB 6 Image control stretching limit problem

12. How to stretch image?

 

 
Powered by phpBB® Forum Software