I know how to get the size (x,y) of an image
Image.FromFile("cat.jpg").Size
BUT that requires loading the image from memory.
When I view the images in Windows Explorer it shows me the size.
- How do I access that size?
- Is it reliable for all images? Does Windows explorer need to have 'seen' the image first for the size to be available. I don't want to upload to a server and have no metadata available before I've loaded it in internet explorer.
Edit: I changed the subject from 'size' to 'dimensions' to clarify which size i wanted.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…