c# - Perspective transform with WPF -


wpf allows specify linear affine transform on graphical objects. can translation, rotation, scaling, skewing, or combination of that. can specify 2x3 matrix.

what want perspective transform in 2d space, requires 3x3 matrix, , known photoshop or gimp, can drag 4 corners of image independently.

i tried use 3d features of wpf, set viewport3d, orthographiccamera , placed (2d) objects onto xy-plane.

but i'm wondering if there no easier way accomplish perspective transform in wpf?

i'm asking because i'd perspective transform on text: in 2d can use textblock, in 3d gets more compliacted, i'd have create brush out of geometry out of formattedtext.

as can read here there 3rd party libraries implement silverlight's planeprojection wpf.

otherwise forced code yourself. (perhaps microsoft add planeprojection in future version of .net)


Comments

Popular posts from this blog

Java 8 + Maven Javadoc plugin: Error fetching URL -

css - SVG using textPath a symbol not rendering in Firefox -

order - Notification for user in user account opencart -