|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
Hi!!
I'm back with an hard problem: is possible to resize a picture loaded in a picture or image VB control with stretch and save the result like a jpg file? I've tried with this: Code:
Picture2.AutoRedraw = True Picture1.Picture = Image1.Picture Picture2.PaintPicture Picture1.Picture, Picture2.ScaleLeft, Picture2.ScaleTop, Picture2.ScaleWidth, Picture2.ScaleHeight, Picture1.ScaleLeft, Picture1.ScaleTop, Picture1.ScaleWidth, Picture1.ScaleHeight Picture2.Picture = Picture2.Image nomefile = App.Path SavePicture Picture2.Picture, "C:\" + Right(immagine, Len(immagine) - InStrRev(immagine, "\")) but it save a bmp image without stretch, I see also a part of the original image ![]() Can u help me please? Thx ![]() |
|
#2
|
|||
|
|||
|
Hi,
Don't know how to solve your stretching problem, but I do know a class that can help you save to a JPG (or some other format you desire). Take a look at http://www.planet-source-code.com/v...=50065&lngWId=1 and download the class. Grtz.© M. |
|
#3
|
|||
|
|||
|
thx
![]() |
|
#4
|
|||
|
|||
|
Just wondering, do you know a company named Techne in Verona?
Grtz© M. |
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > Howto resize with stretch and save an image in jpg format? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|