private void createFromStream(Stream imageData)
{
if (imageData == null)
throw new ArgumentNullException("imageData");
if (isCompressed(imageData))
{
m_compressedData = Utils.CopyStream(imageData);
decompress();
}
else
{
#if !NETSTANDARD
createFromBitmap(new Bitmap(imageData));
#else
throw new NotImplementedException("JpegImage.createFromStream(Stream)");
#endif
}
}