Nevron Open Vision Documentation
Nevron.Nov.Graphics Namespace / NImage Class / FromStream Method


In This Topic
    FromStream Method (NImage)
    In This Topic
    Creates an image from the given stream. The stream is read as a byte array and then an image is created from this byte array, so the image does not depend on the stream and it can be safely disposed.
    Syntax
    'Declaration
     
    
    Public Shared Function FromStream( _
       ByVal stream As System.IO.Stream _
    ) As NImage
    'Usage
     
    
    Dim stream As System.IO.Stream
    Dim value As NImage
     
    value = NImage.FromStream(stream)
    public static NImage FromStream( 
       System.IO.Stream stream
    )

    Parameters

    stream
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also