/// <summary> /// Initializes a new instance of the <see cref="ImageProfile"/> class. /// </summary> /// <param name="name">The name of the profile.</param> protected ImageProfile(string name) { Throw.IfNullOrEmpty(nameof(name), name); Name = name; }
/// <summary> /// Returns the value of a format-specific option. /// </summary> /// <param name="name">The name of the option.</param> /// <returns>The value of a format-specific option.</returns> public string GetDefine(string name) { Throw.IfNullOrEmpty(nameof(name), name); return(GetOption(name)); }
public void Set(int x, int y, QuantumType[] value) { Throw.IfNullOrEmpty(nameof(value), value); SetPixel(x, y, value); }
/// <summary> /// Returns the value of a format-specific option. /// </summary> /// <param name="format">The format to get the option for.</param> /// <param name="name">The name of the option.</param> /// <returns>The value of a format-specific option.</returns> public string GetDefine(MagickFormat format, string name) { Throw.IfNullOrEmpty(nameof(name), name); return(GetOption(ParseDefine(format, name))); }
///<summary> /// Returns the value of the variable with the specified name. ///</summary> ///<param name="name">The name of the variable</param> public object Get(string name) { Throw.IfNullOrEmpty("name", name); return(_Variables[name]); }
/// <summary> /// Set the path to the default font file. /// </summary> /// <param name="fileName">The file name to use at the default font file.</param> public static void SetDefaultFontFile(string fileName) { Throw.IfNullOrEmpty(nameof(fileName), fileName); NativeMagickNET.SetDefaultFontFile(fileName); }
public override void SetPixel(int x, int y, QuantumType[] value) { Throw.IfNullOrEmpty(nameof(value), value); SetPixelPrivate(x, y, value); }
///<summary> /// Creates a new DrawableClipPath instance. ///</summary> ///<param name="clipPath">The ID of the clip path.</param> public DrawableClipPath(string clipPath) { Throw.IfNullOrEmpty("clipPath", clipPath); ClipPath = clipPath; }