示例#1
0
 public Preview(PreviewConfig config)
 {
     try
     {
         _handle = rsid_create_preview(ref config);
     }
     catch (TypeLoadException)
     {
         // work without preview
         _handle = IntPtr.Zero;
     }
 }
示例#2
0
 public void UpdateConfig(PreviewConfig config)
 {
     _config = config;
     try
     {
         _handle = rsid_create_preview(ref _config);
     }
     catch (TypeLoadException)
     {
         // work without preview
         _handle = IntPtr.Zero;
     }
 }
示例#3
0
 public Preview(PreviewConfig config)
 {
     UpdateConfig(config);
 }
示例#4
0
 static extern IntPtr rsid_create_preview(ref PreviewConfig config);