Nevron Open Vision Documentation
Nevron.Nov.Graphics Namespace / NImageEncoder Class / Encode Method
The raster image to encode.


In This Topic
    Encode Method (NImageEncoder)
    In This Topic
    Encodes the specified raster image.
    Syntax
    'Declaration
     
    
    Public MustOverride Function Encode( _
       ByVal raster As NRaster _
    ) As System.Byte()
    'Usage
     
    
    Dim instance As NImageEncoder
    Dim raster As NRaster
    Dim value() As System.Byte
     
    value = instance.Encode(raster)
    public abstract System.byte[] Encode( 
       NRaster raster
    )

    Parameters

    raster
    The raster image to encode.

    Return Value

    A byte array containing the encoded image.
    Remarks
    The function throws an exception if it fails to encode the raster.
    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