Nevron Open Vision Documentation
Nevron.Nov.Graphics Namespace / NImageService Class / NativeEncodePng Method
The raster to be encoded.
PNG encoder settings.

In This Topic
    NativeEncodePng Method
    In This Topic
    Encodes a raster into PNG image format, using the image encoding capabilities of the underlying platform. Must be implemented in the image service of a platform host.
    Protected MustOverride Function NativeEncodePng( _
       ByVal raster As NRaster, _
       ByVal settings As NPngEncoderSettings _
    ) As System.Byte()
    Dim instance As NImageService
    Dim raster As NRaster
    Dim settings As NPngEncoderSettings
    Dim value() As System.Byte
    value = instance.NativeEncodePng(raster, settings)
    protected abstract System.byte[] NativeEncodePng( 
       NRaster raster,
       NPngEncoderSettings settings


    The raster to be encoded.
    PNG encoder settings.

    Return Value

    A byte array containing the encoded image data. Returns null if the encoding fails.

    Target Platforms: Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, 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), Windows Server 2003 SP2

    See Also