コード例 #1
0
        protected override int GetGlobalSettingImpl(
            IntPtr settings,
            string name,
            byte[] buffer)
        {
            if (buffer == null)
            {
                throw new ArgumentNullException(nameof(buffer));
            }

            return(NativeMethodsImage.wkhtmltoimage_get_global_setting(
                       settings,
                       name,
                       buffer,
                       buffer.Length));
        }
コード例 #2
0
 protected override IntPtr GetPhaseDescriptionImpl(
     IntPtr converter,
     int phase) =>
 NativeMethodsImage.wkhtmltoimage_phase_description(
     converter,
     phase);
コード例 #3
0
 protected override IntPtr GetLibraryVersionImpl() =>
 NativeMethodsImage.wkhtmltoimage_version();
コード例 #4
0
 protected override int GetOutputImpl(
     IntPtr converter,
     out IntPtr data) =>
 NativeMethodsImage.wkhtmltoimage_get_output(
     converter,
     out data);
コード例 #5
0
 public override int GetHttpErrorCode(
     IntPtr converter) =>
 NativeMethodsImage.wkhtmltoimage_http_error_code(
     converter);