Nevron Open Vision Documentation
Nevron.Nov.Graphics Namespace / NRaster Class / NRaster Constructor / NRaster Constructor(Int32,Int32,NPixelFormat,Int32,Byte[])
Width of the raster (in pixels). Must be greater than zero.
Height of the raster (in pixels). Must be greater than zero.
Pixel format of the raster. Must not be set to null.
Raster stride.
A byte array containing the raster's pixel data.


In This Topic
    NRaster Constructor(Int32,Int32,NPixelFormat,Int32,Byte[])
    In This Topic
    Creates a new raster with the specified pixel data, width, height and pixel format.
    Syntax
    'Declaration
     
    
    Public Function New( _
       ByVal width As System.Integer, _
       ByVal height As System.Integer, _
       ByVal pixelFormat As NPixelFormat, _
       ByVal stride As System.Integer, _
       ByVal data() As System.Byte _
    )
    'Usage
     
    
    Dim width As System.Integer
    Dim height As System.Integer
    Dim pixelFormat As NPixelFormat
    Dim stride As System.Integer
    Dim data() As System.Byte
     
    Dim instance As New NRaster(width, height, pixelFormat, stride, data)
    public NRaster( 
       System.int width,
       System.int height,
       NPixelFormat pixelFormat,
       System.int stride,
       System.byte[] data
    )

    Parameters

    width
    Width of the raster (in pixels). Must be greater than zero.
    height
    Height of the raster (in pixels). Must be greater than zero.
    pixelFormat
    Pixel format of the raster. Must not be set to null.
    stride
    Raster stride.
    data
    A byte array containing the raster's pixel data.
    Requirements

    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