本文整理汇总了C#中MatrixOrder类的典型用法代码示例。如果您正苦于以下问题:C# MatrixOrder类的具体用法?C# MatrixOrder怎么用?C# MatrixOrder使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
MatrixOrder类属于命名空间,在下文中一共展示了MatrixOrder类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GdipTranslateWorldTransform
static internal extern Status GdipTranslateWorldTransform(IntPtr graphics, float dx, float dy, MatrixOrder order);
示例2: MultiplyTransform
public void MultiplyTransform(Matrix matrix, MatrixOrder order)
{
if (matrix == null)
{
throw new ArgumentNullException("matrix");
}
gradientTransform.Multiply(matrix, order);
changed = true;
}
示例3: ScaleTransform
public void ScaleTransform(float sx, float sy, MatrixOrder order)
{
gradientTransform.Scale(sx, sy, order);
changed = true;
}
示例4: TranslateTransform
public void TranslateTransform(float dx, float dy, MatrixOrder order)
{
lock(this)
{
if(transform == null)
{
transform = new Matrix();
}
transform.Translate(dx, dy, order);
Modified();
}
}
示例5: GdipMultiplyWorldTransform
internal static extern GpStatus GdipMultiplyWorldTransform(GpGraphics graphics, GpMatrix matrix, MatrixOrder order);
示例6: TranslateTransform
public void TranslateTransform(float tx, float ty, MatrixOrder order)
{
//Console.WriteLine ("Currently does not support anything but prepend mode");
modelMatrix.Translate(tx, ty, order);
applyModelView();
}
示例7: RotateTransform
public void RotateTransform(float angle, MatrixOrder order)
{
lock(this)
{
if(transform == null)
{
transform = new Matrix();
}
transform.Rotate(angle, order);
Modified();
}
}
示例8: MultiplyTransform
public void MultiplyTransform(Matrix matrix, MatrixOrder order)
{
if (matrix == null)
{
throw new ArgumentNullException("matrix");
}
int status = SafeNativeMethods.Gdip.GdipMultiplyPathGradientTransform(new HandleRef(this, base.NativeBrush), new HandleRef(matrix, matrix.nativeMatrix), order);
if (status != 0)
{
throw SafeNativeMethods.Gdip.StatusException(status);
}
}
示例9: TranslateTransform
public void TranslateTransform(float dx, float dy, MatrixOrder order)
{
int status = SafeNativeMethods.Gdip.GdipTranslatePathGradientTransform(new HandleRef(this, base.NativeBrush), dx, dy, order);
if (status != 0)
{
throw SafeNativeMethods.Gdip.StatusException(status);
}
}
示例10: GdipScalePenTransform
internal static extern Status GdipScalePenTransform (IntPtr pen, float sx, float sy, MatrixOrder order);
示例11: GdipTranslatePenTransform
internal static extern Status GdipTranslatePenTransform (IntPtr pen, float dx, float dy, MatrixOrder order);
示例12: GdipRotatePenTransform
internal static extern Status GdipRotatePenTransform (IntPtr pen, float angle, MatrixOrder order);
示例13: GdipMultiplyPenTransform
internal static extern Status GdipMultiplyPenTransform (IntPtr pen, IntPtr matrix, MatrixOrder order);
示例14: GdipScaleWorldTransform
internal static extern Status GdipScaleWorldTransform (IntPtr graphics, float sx, float sy, MatrixOrder order);
示例15: RotateTransform
public void RotateTransform(float angle, MatrixOrder order)
{
modelMatrix.Rotate(angle, order);
applyModelView();
}