|
-
Oct 11th, 2000, 08:00 AM
#1
Thread Starter
New Member
How do you make an Jpeg, bmp, gif fit on your form?
How do you resize them to fit your available area on the form?
Help please
-
Oct 11th, 2000, 10:27 AM
#2
Member
I'm guessing you are using a PictureBox to display your image? Don't! Use the Image control. It rescales the image automatically.
Hope this helps
-
Oct 11th, 2000, 11:03 AM
#3
Lively Member
Like this:
Code:
Private Sub Form_Resize()
Image1.Stretch = True
Image1.Width = Me.Width
Image1.Height = Me.Height
End Sub
C/C++,Delphi, VB6,Java,PB (blech!),ASP,JSP,SQL...bla bla bla and bla
I love deadlines. I like the whooshing sound they make as they fly by.
—Douglas Adams
-
Oct 12th, 2000, 08:41 AM
#4
Thread Starter
New Member
it's not what I meant
I meant to make it fit a certain area, with the image control my picture is getting all screw up,
I want it to fit the size of my form nad when I use the strech I'm losing some of the picture and it's getting blown
up too much
-
Oct 12th, 2000, 12:18 PM
#5
Member
use a IMAGE CONTROL instead of a PICTURE BOX CONTROL. it will resize the picture and not the box accordingly.
-
Oct 12th, 2000, 12:31 PM
#6
Thread Starter
New Member
go back and read my last posting, I'm using an image control, I just switch to a pic box five minutes ago and use the paintpicture command on it and seems to work unless picture is really big and then it cuts off this also happens with the image control. Thanks for the suggestion anyways
-
Oct 12th, 2000, 02:03 PM
#7
Member
image box worked for me. but at least you got it working.
-
Oct 12th, 2000, 02:41 PM
#8
transcendental analytic
IT cut's off the picture because it doesn't fit into the picturebox which can't be larger than the screen resolution.
To solve this problem you may have to load the picture directly into a DC and use stretchblt blit it on the form
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|