[]
Gets the dimensions of an BMP, PNG, JPEG or GIF image.
public static SizeF GetDimensions(Stream image)
| Type | Name | Description |
|---|---|---|
| Stream | image | The image to get the dimensions of. |
| Type | Description |
|---|---|
| SizeF | The dimensions (in twips) of the specified image. |
| Type | Condition |
|---|---|
| NotSupportedException | The image was of an unrecognized format. |