|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
|
|
#1
|
||||
|
||||
|
I need to find the size of a JPG.
How can I use VB6 to find the size of a series of JPGs?
I'm writing out some java code to a HTML page to open a popup window to display a JPG. I need to find out the size of the jpg so that I can include the size in the call to the open window function. Any ideas? I've tried using an image box or picture box to load in each JPG and then check size, but I can't even get an image to load. I can load one via the properties on screen with the picture property, but I cannot set the picture property in the code. image1.picture = "C:\photo.jpg" doesn't work. |
|
#2
|
|||
|
|||
|
For vb6 try
Set Picture1.Picture = LoadPicture("c:\photo.jpg") I'm not sure if the same syntax works on an image control. |
|
#3
|
|||
|
|||
|
image1.picture = "C:\photo.jpg" ?? It's incorrect!
Please use set statement! sample:set image1.picture = LoadPicture("C:\photo.jpg") |
|
#4
|
||||
|
||||
|
Thanks both. It's working great
![]() |
|
#5
|
|||
|
|||
|
:-) fine!
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > I need to find the size of a JPG. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|