ImageHelper.GetImageSize Method
Gets the size of the image in world units.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
Syntax
'Declaration
Public Shared Function GetImageSize ( _
image As Image _
) As SizeF
public static SizeF GetImageSize(
Image image
)
public:
static SizeF GetImageSize(
Image^ image
)
static member GetImageSize :
image:Image -> SizeF
public static function GetImageSize(
image : Image
) : SizeF
Parameters
image
Type: System.Drawing.ImageThe image to query for its size.
Return Value
Type: System.Drawing.SizeF
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.