Nevron Open Vision Documentation
Nevron.Nov.Graphics Namespace / NRaster Class / CreateSubRaster Method
X location of the sub-raster's top-left corner.
Y location of the sub-raster's top-left corner.
Width of the sub-raster (in pixels).
Height of the sub-raster (in pixels).


In This Topic
    CreateSubRaster Method
    In This Topic
    Creates a new raster as a portion of the current raster.
    Syntax
    'Declaration
     
    
    Public Function CreateSubRaster( _
       ByVal x As System.Integer, _
       ByVal y As System.Integer, _
       ByVal width As System.Integer, _
       ByVal height As System.Integer _
    ) As NRaster
    'Usage
     
    
    Dim instance As NRaster
    Dim x As System.Integer
    Dim y As System.Integer
    Dim width As System.Integer
    Dim height As System.Integer
    Dim value As NRaster
     
    value = instance.CreateSubRaster(x, y, width, height)
    public NRaster CreateSubRaster( 
       System.int x,
       System.int y,
       System.int width,
       System.int height
    )

    Parameters

    x
    X location of the sub-raster's top-left corner.
    y
    Y location of the sub-raster's top-left corner.
    width
    Width of the sub-raster (in pixels).
    height
    Height of the sub-raster (in pixels).

    Return Value

    A new raster object.
    Remarks
    The specified location and size must define a raster that fits within the current raster, otherwise an ArgumentException is thrown.
    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