public Preview(PreviewConfig config) { try { _handle = rsid_create_preview(ref config); } catch (TypeLoadException) { // work without preview _handle = IntPtr.Zero; } }
public void UpdateConfig(PreviewConfig config) { _config = config; try { _handle = rsid_create_preview(ref _config); } catch (TypeLoadException) { // work without preview _handle = IntPtr.Zero; } }
public Preview(PreviewConfig config) { UpdateConfig(config); }
static extern IntPtr rsid_create_preview(ref PreviewConfig config);