Strokes.Scale - метод
Обновлен: Ноябрь 2007
Scales the Strokes collection in the X and Y dimensions.
Пространство имен: Microsoft.Ink
Сборка: Microsoft.Ink (в Microsoft.Ink.dll)
Синтаксис
'Декларация
Public Sub Scale ( _
scaleX As Single, _
scaleY As Single _
)
'Применение
Dim instance As Strokes
Dim scaleX As Single
Dim scaleY As Single
instance.Scale(scaleX, scaleY)
public void Scale(
float scaleX,
float scaleY
)
public:
void Scale(
float scaleX,
float scaleY
)
public void Scale(
float scaleX,
float scaleY
)
public function Scale(
scaleX : float,
scaleY : float
)
Параметры
- scaleX
Тип: System.Single
The factor to scale the X dimension of the view transform.
- scaleY
Тип: System.Single
The factor to scale the Y dimension of the view transform.
Заметки
Zero-determinant transforms are not supported. This means that calling the Scale method with one of the scales set to zero is not supported.
Примеры
In this example, a scaling factor of 2 in the X dimension and of 0.75 in the Y dimension is applied to the Strokes collection of an InkOverlay object.
' Access to the Strokes property returns a copy of the Strokes object.
' This copy must be implicitly (via using statement) or explicitly
' disposed of in order to avoid a memory leak.
Using allStrokes As Strokes = mInkOverlay.Ink.Strokes
allStrokes.Scale(2.0F, 0.75F)
End Using
// Access to the Strokes property returns a copy of the Strokes object.
// This copy must be implicitly (via using statement) or explicitly
// disposed of in order to avoid a memory leak.
using (Strokes allStrokes = mInkOverlay.Ink.Strokes)
{
allStrokes.Scale(2.0f, 0.75f);
}
Платформы
Windows Vista
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0