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 function GetRotatedBoundingBox() : Point[]
Return Value
Type: array<System.Drawing.Point[]
Returns the rotated rectangle that bounds the InkWordNode.
Examples
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()
theRenderer.InkSpaceToPixel(panelGraphics, corners)
' Draw the rectangle
panelGraphics.DrawPolygon(New Pen(Color.Blue), corners)
// Convert corners to pixel coordinates
Point[] corners = inkWord.GetRotatedBoundingBox();
theRenderer.InkSpaceToPixel(panelGraphics, ref corners);
// Draw the rectangle
panelGraphics.DrawPolygon(new Pen(Color.Blue), corners);
Platforms
Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information
.NET Framework
Supported in: 3.0