|
-
Mar 7th, 2002, 06:46 PM
#1
Attempting to resize an image with percent...
Ok, so I made a program that resizes pictures, but I cannot figure out how to make it resize using percentages. I have the width property resizing correctly, but the height property won't resize at all...
It is setup like this:
picture1.height = (text1.text / 100) * picture1.height
picture1.width = (text1.text / 100) * picture1.width
Like I said, the width resizes, but the height that is supposed to resize is only a gray area. The picturebox resizes, but it has no picture in that area and the picture is stretched horizontally. Help?
~SirK
-
Oct 4th, 2002, 11:33 AM
#2
Lively Member
Creating Thunb Nails
Hi there can you help me...
I need to create a thunb nail, how can i do it...
tks
ASPWIZARD
http://www.aspwizard.co.uk
-
Oct 4th, 2002, 03:22 PM
#3
Addicted Member
Euhm, use a image box and put the stretch property to true?
It works fine over here.
-Shell-
-
Oct 4th, 2002, 06:36 PM
#4
Fanatic Member
Re: Attempting to resize an image with percent...
Originally posted by
It is setup like this:
picture1.height = (text1.text / 100) * picture1.height
picture1.width = (text1.text / 100) * picture1.width
You are getting both the width and height from the same variable (text1.text)
-
Oct 5th, 2002, 10:31 AM
#5
Lively Member
BMP to JPG
Ok, I was abre to create my file, the FORMAT that gets created is BMP is there any class i should be aware that will convert BMP into JPG.
Kind Regards
ASPWIZARD
http://www.aspwizard.co.uk
-
Oct 7th, 2002, 10:50 AM
#6
GDI+ in VB .NET
VB6 there is some ActiveX control, forgot it's name.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Oct 7th, 2002, 01:03 PM
#7
Fanatic Member
Not activex it was a dll... by the JPEG group.. idj15.dll or something like that...
[edit]
Search forums for JPEG and dll
-
Oct 7th, 2002, 03:35 PM
#8
Lively Member
thanks
Thank you, but i'm actually looking for a CLASS and not a DLL not sure if that is possible.
tks
ASPWIZARD
http://www.aspwizard.co.uk
-
Oct 7th, 2002, 03:41 PM
#9
Fanatic Member
yes its possible
vbaccelerator.com did it
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
|