DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomImage Class / SetPixelFile Method

The name of the external file

Transfer Syntax of the Pixel Data

The offset in the file of the start of the first frame

The offset in the file between the start of one frame, and the start of the next







In This Topic
    SetPixelFile Method (DicomImage)
    In This Topic
    Maps an external file as the pixel data
    Syntax
    'Declaration
     
    
    Public Sub SetPixelFile( _
       ByVal FileName As System.String, _
       ByVal TransferSyntax As System.String, _
       ByVal InitialOffset As System.Long, _
       ByVal FrameOffset As System.Long _
    ) 
    'Usage
     
    
    Dim instance As DicomImage
    Dim FileName As System.String
    Dim TransferSyntax As System.String
    Dim InitialOffset As System.Long
    Dim FrameOffset As System.Long
     
    instance.SetPixelFile(FileName, TransferSyntax, InitialOffset, FrameOffset)
    public void SetPixelFile( 
       System.string FileName,
       System.string TransferSyntax,
       System.long InitialOffset,
       System.long FrameOffset
    )
    public procedure SetPixelFile( 
        FileName: System.String;
        TransferSyntax: System.String;
        InitialOffset: System.Int64;
        FrameOffset: System.Int64
    ); 
    public function SetPixelFile( 
       FileName : System.String,
       TransferSyntax : System.String,
       InitialOffset : System.long,
       FrameOffset : System.long
    );
    public: void SetPixelFile( 
       System.string* FileName,
       System.string* TransferSyntax,
       System.long InitialOffset,
       System.long FrameOffset
    ) 
    public:
    void SetPixelFile( 
       System.String^ FileName,
       System.String^ TransferSyntax,
       System.int64 InitialOffset,
       System.int64 FrameOffset
    ) 

    Parameters

    FileName

    The name of the external file

    TransferSyntax

    Transfer Syntax of the Pixel Data

    InitialOffset

    The offset in the file of the start of the first frame

    FrameOffset

    The offset in the file between the start of one frame, and the start of the next

    Remarks
    The PixelData attribute (7FE0, 0010) is set after calling this method and Pixel data is read from the specified external file only when image rendering is about to happen.
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also