Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
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  
Old August 11th, 2004, 04:22 AM
zwonimir zwonimir is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2004
Location: East Side Verona, Southern Europe
Posts: 98 zwonimir User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Question Howto resize with stretch and save an image in jpg format?

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

Reply With Quote
  #2  
Old August 11th, 2004, 08:42 AM
Mythomep Mythomep is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Location: Zaandam, The Netherlands
Posts: 70 Mythomep User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 m 37 sec
Reputation Power: 4
Send a message via MSN to Mythomep
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.

Reply With Quote
  #3  
Old August 24th, 2004, 05:26 AM
zwonimir zwonimir is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2004
Location: East Side Verona, Southern Europe
Posts: 98 zwonimir User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
thx

Reply With Quote
  #4  
Old August 24th, 2004, 06:08 AM
Mythomep Mythomep is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Location: Zaandam, The Netherlands
Posts: 70 Mythomep User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 m 37 sec
Reputation Power: 4
Send a message via MSN to Mythomep
Just wondering, do you know a company named Techne in Verona?

Grtz©

M.

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > Howto resize with stretch and save an image in jpg format?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway