다음을 통해 공유


Stroke.GetPoints 메서드 (Int32, Int32)

업데이트: 2007년 11월

Stroke 개체를 구성하는 지정된 범위의 Point 구조체를 반환합니다.

네임스페이스:  Microsoft.Ink
어셈블리:  Microsoft.Ink(Microsoft.Ink.dll)

구문

‘선언
Public Function GetPoints ( _
    index As Integer, _
    count As Integer _
) As Point()
‘사용 방법
Dim instance As Stroke
Dim index As Integer
Dim count As Integer
Dim returnValue As Point()

returnValue = instance.GetPoints(index, _
    count)
public Point[] GetPoints(
    int index,
    int count
)
public:
array<Point>^ GetPoints(
    int index, 
    int count
)
public Point[] GetPoints(
    int index,
    int count
)
public function GetPoints(
    index : int, 
    count : int
) : Point[]

매개 변수

  • index
    형식: System.Int32
    Stroke 개체를 구성하는 Point 구조체의 배열 내에 있는 시작 인덱스(0부터 시작)입니다.

반환 값

형식: array<System.Drawing.Point[]
Stroke 개체를 구성하는 Point 구조체의 배열을 반환합니다.

예제

이 예제에서는 InkOverlay의 선택된 각 Stroke 개체를 조사합니다. Stroke 개체에 90개 이상의 패킷이 들어 있는 경우 Stroke 개체의 Point 개체(위치 39의 Point 개체부터)를 50개 가져와 새 Stroke 개체를 만드는 데 사용합니다. 그런 다음 새 Stroke 개체를 XY 방향으로 200 HIMETRIC 단위만큼 이동합니다.

For Each S As Stroke In mInkOverlay.Selection
    If S.PacketCount >= 90 Then
        Dim sPts() As Point = S.GetPoints(39, 50)
        Dim newStroke As Stroke = S.Ink.CreateStroke(sPts)
        newStroke.Move(200, 200)
    End If
Next
foreach (Stroke S in mInkOverlay.Selection)
{
    if (S.PacketCount >= 90)
    {
        Point[] sPts = S.GetPoints(39, 50);
        Stroke newStroke = S.Ink.CreateStroke(sPts);
        newStroke.Move(200, 200);
    }
}

플랫폼

Windows Vista

.NET Framework 및 .NET Compact Framework에서 모든 플랫폼의 전체 버전을 지원하지는 않습니다. 지원되는 버전의 목록을 보려면 .NET Framework 시스템 요구 사항을 참조하십시오.

버전 정보

.NET Framework

3.0에서 지원

참고 항목

참조

Stroke 클래스

Stroke 멤버

GetPoints 오버로드

Microsoft.Ink 네임스페이스

Stroke.GetPoint