Importing pixel data to DicomImage

Pixel data that is not convertible to Bitmap can be directly imported by DicomObjects by using the DimcomImage.Import() method overload with "stream" and "format" parameters.

These parameters are:
  1. "Stream" which consists of pixel data.
  2. "Format" is a string value of the file extension.  ( e.g.  J2K , JPP , JP2 , JPC , PGC , PGX , PDF , CDA )

Based on the specified "format",  an appropriate codec is selected and applied for importing pixel data from the "stream" to a DicomImage.