Bitmap DecodeSingleFrame( Stream stream )
Function DecodeSingleFrame ( stream As Stream ) As Bitmap
For one-frame image formats the method is supposed to decode single available frame. For multi-frame image formats the first frame should be decoded.
Implementations of this method may throwexception to report about unrecognized image format, exception to report about incorrectly formatted image or exception to report if certain formats are not supported.