Mimic System.Drawing.Drawing2D.Matrix .net class in javascript

I'm rebuilding a .net drawing application in javascript, using HTML5 canvas for the drawing. To make it easy for myself I also rebuild some System.Drawing classes in javascript, one of them is the Matrix class. The .net Matrix class has a constructor which let's you map a rectangle to a parallelogram, see: http://msdn.microsoft.com/en-us/library/ka4k5fxa#Y0 But I can not find out which calculation I have to do, to get this also working in Javascript, any Matrix experts here, to help me out?

thanks,

Rob

Answers


Well I found it, by looking at the source of the wine library: http://source.winehq.org/source/dlls/gdiplus/matrix.c


Need Your Help

Fixed Nav when you scroll down

javascript jquery html css header

Once i scroll down about 300px, i want my nav to become fixed at the top. I also want to change the style slightly on that nav.

Add() versus addAll() insertion into Java PriorityHeap

java hadoop heap priority-queue

I've being studying the different possibilities to add values in a heap in Java. I'm using the PriorityHeap class. When I noticed slow running times in my application, I decided to give this a look...