473,378 Members | 1,436 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Image Information

Hi,

Is there a way in VB.NET to get a JPEG Image Information ? like dimensions
(Width x Height)...etc..

Thanks in advance
Apr 8 '06 #1
3 1321
Once you open the image as an Image, you can get this information from the
class.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Show me your certification without works,
and I'll show my certification
*by* my works.

"martins" <xx*@hotmail.com> wrote in message
news:eE*************@TK2MSFTNGP05.phx.gbl...
Hi,

Is there a way in VB.NET to get a JPEG Image Information ? like
dimensions (Width x Height)...etc..

Thanks in advance

Apr 8 '06 #2
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:OT**************@TK2MSFTNGP02.phx.gbl...
Once you open the image as an Image, you can get this information from the
class.


thanks for your reply

I have a PictureBox control but in order to fit on my program's frame I set
the property of SizeMode to StrechImage

The properties PictureBox1.Height and PictureBox1.Width, don't give me the
original size of the image...only the size of the streched image

Don't know how to get de original dimension of a JPEG image

can you give me some sample code ?

thank you very much
Apr 9 '06 #3
> The properties PictureBox1.Height and PictureBox1.Width, don't give me
the original size of the image...only the size of the streched image
Actually, they only give you the size of the PictureBox.
can you give me some sample code ?
Sure: PictureBox1.Image.Height
PictureBox1.Image.Width

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Show me your certification without works,
and I'll show my certification
*by* my works.

"martins" <xx*@hotmail.com> wrote in message
news:OE****************@TK2MSFTNGP02.phx.gbl... "Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:OT**************@TK2MSFTNGP02.phx.gbl...
Once you open the image as an Image, you can get this information from
the class.


thanks for your reply

I have a PictureBox control but in order to fit on my program's frame I
set the property of SizeMode to StrechImage

The properties PictureBox1.Height and PictureBox1.Width, don't give me
the original size of the image...only the size of the streched image

Don't know how to get de original dimension of a JPEG image

can you give me some sample code ?

thank you very much

Apr 9 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

23
by: Erik Schulp | last post by:
Hi all, I am using a background image via a stylsheet. I've used this code: background-image:url("/images/tile.gif"); (which I think is correct) The image doesn't show up however, the path,...
3
by: Sandi | last post by:
I have a simple problem: I have an Access database (images.mdb) that has 2 columns: one is the id if the picture (an integer) and one (column named picture) is a field of type OLE Object which...
6
by: Jensen bredal | last post by:
Hello gurus I need to upload to accept image upload on my site. I also need to display these images in a databound control. The image are upload in a database. My concers are: -How do i...
13
by: Neo Geshel | last post by:
I have examined about 80+ different upload scripts on the 'net, both in VB and C#, and none seem to do what I need them to do. Perhaps someone here can point me somewhere that Google hasn't...
35
by: Stan Sainte-Rose | last post by:
Hi, What is the better way to save image into a database ? Just save the path into a field or save the image itself ? I have 20 000 images (~ 10/12 Ko per image ) to save. Stan
7
by: bcutting | last post by:
I am looking for a way to take a large number of images and find matches among them. These images may not be exact replicas. Images may have been resized, cropped, faded, color corrected, etc. ...
2
by: CK | last post by:
Hello All, I am trying to extend the default asp:ImageButton to include an image for an enabled state and a second image for a disabled state. I currently did this by extending the ImageButton...
7
by: Ben | last post by:
Hi We are looking for a component that offers that offers the below for Tiff files: Image clean-up (deskew, despeckle) Printing capabilities from VB The ability to add text to image, e.g....
2
by: Atul | last post by:
I am unable to find image height and width in mozilla firefox. My code is working in IE but not in Mozilla. How can i find image width and height in mozilla? function check(sel) { if(sel != "")...
0
Debadatta Mishra
by: Debadatta Mishra | last post by:
Introduction In this article I will provide you an approach to manipulate an image file. This article gives you an insight into some tricks in java so that you can conceal sensitive information...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.