Beispiel #1
0
        public byte[] GetConverterResult(IntPtr converter)
        {
            Tracer.Trace("T:" + Thread.CurrentThread.Name + " Requesting converter result (wkhtmltoimage_get_output)");

            IntPtr tmp;
            var    len    = WkhtmltoxBindings.wkhtmltoimage_get_output(converter, out tmp);
            var    output = new byte[len];

            Marshal.Copy(tmp, output, 0, output.Length);
            return(output);
        }