콘텐츠로 이동

PathGeometry.Transform method

이 콘텐츠는 아직 번역되지 않았습니다.

Returns a new PathGeometry with every command’s coordinates transformed by matrix. Cubic Béziers are affine-invariant, so transforming the control points is exact. Use this to bake a stretch/scale matrix into the geometry when subsequent draws need to be transform-independent - e.g. so that Stroke thickness (which under MewUI’s Model D scales with the active context transform) stays in element-DIP regardless of the bake. Returns this if the matrix is the identity. Cheap; consider caching at the call site if invoked per-frame on a hot path.

public PathGeometry Transform(Matrix3x2 matrix)