Not
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Returns rotated rectangle that bounds the LineNode.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink.Analysis (in Microsoft.Ink.Analysis.dll)
Syntax
'Declaration
Public Function GetRotatedBoundingBox As Point()
'Usage
Dim instance As LineNode
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[]
The rotated rectangle that bounds the LineNode.
Examples
The following example draws the rotated bounding box for a LineNode, line, by using a Renderer object, theRenderer, and a Graphics object, panelGraphics, which is created by a Panel.
' Convert corners to pixel coordinates
Dim corners As Point() = line.GetRotatedBoundingBox()
theRenderer.InkSpaceToPixel(panelGraphics, corners)
' Draw the rectangle
panelGraphics.DrawPolygon(New Pen(Color.Blue), corners)
Next line
// Convert corners to pixel coordinates
Point[] corners = line.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