|
|
@ -49,6 +49,11 @@ namespace ImageSharp |
|
|
public Image(int width, int height, Configuration configuration = null) |
|
|
public Image(int width, int height, Configuration configuration = null) |
|
|
: base(width, height, configuration) |
|
|
: base(width, height, configuration) |
|
|
{ |
|
|
{ |
|
|
|
|
|
if (!this.Configuration.ImageFormats.Any()) |
|
|
|
|
|
{ |
|
|
|
|
|
throw new NotSupportedException("No image formats have been configured."); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
this.CurrentImageFormat = this.Configuration.ImageFormats.First(); |
|
|
this.CurrentImageFormat = this.Configuration.ImageFormats.First(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|