internal Original(object image, OriginalOptions options, Color customTransparentColor) { if (!(image is Icon) && !(image is Image)) { throw new InvalidOperationException(SR.ImageListEntryType); } _image = image; _options = options; _customTransparentColor = customTransparentColor; if ((options & OriginalOptions.CustomTransparentColor) == 0) { Debug.Assert(customTransparentColor.Equals(Color.Transparent), "Specified a custom transparent color then told us to ignore it"); } }
internal Original(object image, OriginalOptions options, Color customTransparentColor) { Debug.Assert(image != null, "image is null"); if (!(image is Icon) && !(image is Image)) { throw new InvalidOperationException(SR.GetString(SR.ImageListEntryType)); } this.image = image; this.options = options; this.customTransparentColor = customTransparentColor; if ((options & OriginalOptions.CustomTransparentColor) == 0) { Debug.Assert(customTransparentColor.Equals(Color.Transparent), "Specified a custom transparent color then told us to ignore it"); } }
internal Original(object image, OriginalOptions options, int nImages) : this(image, options, Color.Transparent) { this.nImages = nImages; }
internal Original(object image, OriginalOptions options) : this(image, options, Color.Transparent) { }
internal Original(object image, OriginalOptions options, int nImages) : this(image, options, Color.Transparent) { _nImages = nImages; }