This documentation is archived and is not being maintained.

Image.GetBounds Method

Gets a bounding rectangle in the specified units for this Image object.

[Visual Basic]
Public Function GetBounds( _
   ByRef pageUnit As GraphicsUnit _
) As RectangleF
[C#]
public RectangleF GetBounds(
   ref GraphicsUnit pageUnit
);
[C++]
public: RectangleF GetBounds(
 GraphicsUnit* pageUnit
);
[JScript]
public function GetBounds(
   pageUnit : GraphicsUnit
) : RectangleF;

Parameters

pageUnit
A member of the GraphicsUnit enumeration that specifies the units for the rectangle.

Return Value

A RectangleF structure that represents a bounding rectangle for this Image object.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Image Class | Image Members | System.Drawing Namespace

Show: