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