Exemplo n.º 1
0
 ////////////////////////////////////////////////////////////////////////////
 //--------------------------------- REVISIONS ------------------------------
 // Date       Name                 Tracking #         Description
 // ---------  -------------------  -------------      ----------------------
 // 13JUN2009  James Shen                 	          Initial Creation
 ////////////////////////////////////////////////////////////////////////////
 /**
  * Returns a transform representing a shearing transformation.
  * The matrix representing the returned transform is:
  * <pre>
  *		[   1   shx   0   ]
  *		[  shy   1    0   ]
  *		[   0    0    1   ]
  * </pre>
  * @param shx the multiplier by which coordinates are shifted in the
  * direction of the positive X axis as a factor of their Y coordinate
  * @param shy the multiplier by which coordinates are shifted in the
  * direction of the positive Y axis as a factor of their X coordinate
  * @return an <code>AffineTransform</code> object that shears
  *	coordinates by the specified multipliers.
  */
 public static AffineTransform GetShearInstance(double shx, double shy)
 {
     var tx = new AffineTransform();
     tx.SetToShear(shx, shy);
     return tx;
 }