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


In This Topic
    NativeEncodePng Method (nprI)
    In This Topic
    Encodes a raster into PNG image format, using the GDI+ image encoder.
    Syntax
    'Declaration
     
    
    Protected Overrides NotOverridable Function NativeEncodePng( _
       ByVal rprI As NRaster, _
       ByVal SprI As NPngEncoderSettings _
    ) As System.Byte()
    'Usage
     
    
    Dim instance As nprI
    Dim rprI As NRaster
    Dim SprI As NPngEncoderSettings
    Dim value() As System.Byte
     
    value = instance.NativeEncodePng(rprI, SprI)
    protected override System.byte[] NativeEncodePng( 
       NRaster rprI,
       NPngEncoderSettings SprI
    )

    Parameters

    rprI
    The raster to be encoded.
    SprI
    PNG encoder settings.

    Return Value

    A byte array containing the encoded image data. Returns null if the encoding fails.
    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