DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomDataSet Class / GetPixelStream Method
Requested pixel data for the frame






In This Topic
    GetPixelStream Method
    In This Topic
    Returns the raw pixel data as a Stream object for a specific frame
    Syntax
    'Declaration
     
    
    Public Function GetPixelStream( _
       ByVal Frame As System.Integer _
    ) As System.IO.Stream
    'Usage
     
    
    Dim instance As DicomDataSet
    Dim Frame As System.Integer
    Dim value As System.IO.Stream
     
    value = instance.GetPixelStream(Frame)
    public System.IO.Stream GetPixelStream( 
       System.int Frame
    )
    public function GetPixelStream( 
        Frame: System.Integer
    ): System.IO.Stream; 
    public function GetPixelStream( 
       Frame : System.int
    ) : System.IO.Stream;
    public: System.IO.Stream* GetPixelStream( 
       System.int Frame
    ) 
    public:
    System.IO.Stream^ GetPixelStream( 
       System.int Frame
    ) 

    Parameters

    Frame
    Requested pixel data for the frame

    Return Value

    PixelData of the specified frame or null if it is uncompressed data or it encounters any failure during conversion
    Remarks
    Specify requested frame as 1 for MPEG data (mpeg 1,2,4) as they are defined/handled as 1 frame in DICOM
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also