Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ImageObject"/> class from the specified file.
 /// </summary>
 /// <remarks>
 /// ImageObject has been saved by <see cref="Save(string)"/> can be loaded.
 /// </remarks>
 /// <param name="path">Path to the image object to load.</param>
 /// <exception cref="ArgumentNullException"><paramref name="path"/> is null.</exception>
 /// <exception cref="FileNotFoundException"><paramref name="path"/> is invalid.</exception>
 /// <exception cref="NotSupportedException">
 ///     The feature is not supported.<br/>
 ///     -or-<br/>
 ///     <paramref name="path"/> is not supported file.
 /// </exception>
 /// <exception cref="UnauthorizedAccessException">No permission to access the specified file.</exception>
 /// <seealso cref="Save(string)"/>
 /// <since_tizen> 4 </since_tizen>
 public ImageObject(string path)
 {
     if (path == null)
     {
         throw new ArgumentNullException(nameof(path));
     }
     InteropImage.Load(path, out _handle).Validate("Failed to load image object from file");
 }