Example #1
0
		public void TransformPath(System.Drawing.Drawing2D.GraphicsPath path)
		{
			path.Transform(this);
		}
Example #2
0
 public static byte[] TransfromXmlStringToHtml(System.Xml.Xsl.XslCompiledTransform xsl, System.Xml.XPath.XPathDocument xpathDoc, System.Xml.Xsl.XsltArgumentList xpathParameter = null)
 {
     byte[] result;
     using (System.IO.Stream str = new System.IO.MemoryStream()) {
         xsl.Transform(xpathDoc, xpathParameter, str);
         str.Position = 0;
         if (str.ReadByte() == bomBuffer[0] && str.ReadByte() == bomBuffer[1] && str.ReadByte() == bomBuffer[2]) {
             str.Position = 3;
             result = new byte[str.Length - 3];
         } else {
             str.Position = 0;
             result = new byte[str.Length];
         }
         if (str.Length > 0) {
             str.Read(result, 0, result.Length);
         } else {
             result = new byte[0];
         }
         xsl.TemporaryFiles.Delete();
         return result;
     }
 }