This documentation is for the old version. Go to the latest Graphics Mill docs

Common.GetImageSize Method

Returns the size and resolution of an image stored at the specified path.

Namespace: Aurigma.GraphicsMill.AjaxControls.VectorObjects
Assembly: Aurigma.GraphicsMill.AjaxControls.VectorObjects (in Aurigma.GraphicsMill.AjaxControls.VectorObjects.dll)

Syntax

Visual Basic
Public Shared Sub GetImageSize ( _
	imageFileName As String, _
	<OutAttribute> ByRef imageSize As Size, _
	<OutAttribute> ByRef horizontalResolution As Single, _
	<OutAttribute> ByRef verticalResolution As Single _
)
C#
public static void GetImageSize(
	string imageFileName,
	out Size imageSize,
	out float horizontalResolution,
	out float verticalResolution
)

Parameters

imageFileName

Type: System.String

Filename of the image to get a size.
imageSize

Type: System.Drawing.Size %

horizontalResolution

Type: System.Single %

verticalResolution

Type: System.Single %

See Also

Reference