Reputation: 710
What would be the best built-in .Net 4.5 or newer class to hold a photo in-memory. My little project is a command-line program that will do image upload to a server. No image manipulations are planned. But data type should allow access to image dimensions.
Upvotes: 0
Views: 37
Reputation: 3386
It sounds like you're looking for Image
. It allows access to the dimensions of the image through it's Height
and Width
properties, and you can get it from a file via Image.FromFile
.
Upvotes: 1