NevronOpenVision
Nevron.Nov.Graphics Namespace / NRaster Class / NRaster Constructor / NRaster Constructor(Int32,Int32,NPixelFormat,Int32)
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 in bytes. If the specified value is smaller than the minimal possible stride for raster, the constructor throws an ArgumentException.
NRaster Constructor(Int32,Int32,NPixelFormat,Int32)
Creates a new raster with the specified width, height, pixel format and stride.
Syntax
public NRaster( 
   System.int width,
   System.int height,
   NPixelFormat pixelFormat,
   System.int stride
)

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 in bytes. If the specified value is smaller than the minimal possible stride for raster, the constructor throws an ArgumentException.
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