Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Visual Basic Forum for Visual Basic Programmers VB Forum Index » General

Post new topic   Reply to topic
Loading a picture
View previous topic :: View next topic  
Author Message
Blaz3
Guest





PostPosted: Dec 25th, 2003 02:53 AM    Post subject: Loading a picture Reply with quote

I have a question. Here's my problem:
I'm making an editor. In the editor I have a picture box thats bigger than 32x32 (on purpose) How would I stretch a 32x32 image to that picturebox? Thanks.
Back to top
Avis
Junior Poster


Joined: 07 Oct 2003
Posts: 510
Location: India

PostPosted: Dec 25th, 2003 07:00 AM    Post subject: Reply with quote

Hi!

Image control has a Stretch Property but not Picture Box. Though i don't know the way to stretch a image in a picture box but i think there must be some api to achieve this.

Better search www.google.com or www.freevbcode.com to find the solution for this problem.

Thanks!
_________________
Code Snippets, Tutorials, Utilities, Controls

Low cost Web Hosting
Hosting starts at as low as $4 per year!


Always follow posting guidelines
Put your VB code in [vb ] your code [ /vb] tags!
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger ICQ Number
Avis
Junior Poster


Joined: 07 Oct 2003
Posts: 510
Location: India

PostPosted: Dec 25th, 2003 07:11 AM    Post subject: Reply with quote

Hi!

I found the following on internet better check them out maybe these will help.

http://www.ilook.fsnet.co.uk/vb/vbgrap.htm


Hope this helps!
_________________
Code Snippets, Tutorials, Utilities, Controls

Low cost Web Hosting
Hosting starts at as low as $4 per year!


Always follow posting guidelines
Put your VB code in [vb ] your code [ /vb] tags!
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger ICQ Number
P.T.A.M.
Administrator


Joined: 08 Oct 2003
Posts: 752
Location: Greece

PostPosted: Dec 25th, 2003 04:44 PM    Post subject: Reply with quote

Well you can put an image control in the picture box (have the picbox as the container of the image control) or use the [api]StretchBlt[/api] API Smile
_________________
No one is completely useless. They can at least be an example of what to avoid.
Back to top
View user's profile Send private message Send e-mail Visit poster's website ICQ Number
Algar
Newbie


Joined: 16 Oct 2003
Posts: 20

PostPosted: Dec 25th, 2003 09:22 PM    Post subject: Reply with quote

Yea I was going to suggest StretchBlt too.
_________________
The McDonald's are starting to get really bad around here. I found a handgun in my cheeseburger yesterday.
Back to top
View user's profile Send private message Send e-mail AIM Address
Blaz3
Guest





PostPosted: Dec 26th, 2003 09:18 PM    Post subject: Reply with quote

Ok thanks for all your help. I got it Smile
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Visual Basic Forum for Visual Basic Programmers VB Forum Index » General All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Visual Basic Forum runs phpBB | Forum Template © iOptional
VB Resources | SSL | Visual Basic