Share via


InkWordNode.GetRotatedBoundingBox Method

Returns a rotated rectangle that bounds the InkWordNode.

Namespace: Microsoft.Ink
Assembly: Microsoft.Ink.Analysis (in microsoft.ink.analysis.dll)

Syntax

'Declaration
Public Function GetRotatedBoundingBox As Point()
'Usage
Dim instance As InkWordNode
Dim returnValue As Point()

returnValue = instance.GetRotatedBoundingBox
public Point[] GetRotatedBoundingBox ()
public:
array<Point>^ GetRotatedBoundingBox ()
public Point[] GetRotatedBoundingBox ()
public function GetRotatedBoundingBox () : Point[]
Not applicable.

Return Value

Returns the rotated rectangle that bounds the InkWordNode.

Example

The following example draws the rotated bounding box for an InkWordNode, inkWord, by using a Renderer object, theRenderer, and a Graphics object, panelGraphics, which was created by a Panel.

' Convert corners to pixel coordinates
Dim corners As Point() = inkWord.GetRotatedBoundingBox()
Dim index As Integer
For index = 0 To corners.Length - 1
    theRenderer.InkSpaceToPixel(panelGraphics, corners(index))
Next index

' Draw the rectangle
panelGraphics.DrawPolygon(New Pen(Color.Blue), corners)
// Convert corners to pixel coordinates
Point[] corners = inkWord.GetRotatedBoundingBox();
for (int i = 0; i < corners.Length; i++ )
{
    theRenderer.InkSpaceToPixel(panelGraphics, ref corners[i]);
}
// Draw the rectangle
panelGraphics.DrawPolygon(new Pen(Color.Blue), corners);

Platforms

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

InkWordNode Class
InkWordNode Members
Microsoft.Ink Namespace