コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HostColorManagement"/> class, with a <see cref="String"/> containing the path of the document color profile.
 /// </summary>
 /// <param name="documentProfilePath">The path of the document color profile.</param>
 /// <exception cref="ArgumentNullException"><paramref name="documentProfilePath"/> is null.</exception>
 /// <exception cref="ArgumentException">
 /// <paramref name="documentProfilePath"/> is a 0 length string, contains only white-space, or contains one or more invalid characters.</exception>
 /// <exception cref="DirectoryNotFoundException"><paramref name="documentProfilePath"/> is invalid, such as referring to an unmapped drive.</exception>
 /// <exception cref="FileNotFoundException"><paramref name="documentProfilePath"/> could not be found.</exception>
 /// <exception cref="IOException">An I/O error occurred when opening the file.</exception>
 /// <exception cref="PathTooLongException">The specified path, file name, or both exceed the system-defined maximum length.</exception>
 /// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception>
 public HostColorManagement(string documentProfilePath) : this(documentProfilePath, ColorProfileHelper.GetPrimaryMonitorProfile(), false)
 {
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HostColorManagement"/> class, with a <see cref="Byte"/> array containing the document color profile.
 /// </summary>
 /// <param name="documentProfile">The byte array that contains the color profile of the document.</param>
 /// <overloads>Initializes a new instance of the <see cref="HostColorManagement"/> class.</overloads>
 /// <exception cref="ArgumentNullException"><paramref name="documentProfile"/> is null.</exception>
 public HostColorManagement(byte[] documentProfile) : this(documentProfile, ColorProfileHelper.GetPrimaryMonitorProfile(), false)
 {
 }