VintaSoft Imaging .NET SDK 12.1: Documentation for .NET developer
Vintasoft.Imaging.ImageProcessing Namespace / ProcessingCommandBase Class / GetRegionOptimalDecomposition(VintasoftImage,Rectangle,Int32,Int32) Method
Syntax Remarks Requirements SeeAlso
In This Topic
    GetRegionOptimalDecomposition(VintasoftImage,Rectangle,Int32,Int32) Method (ProcessingCommandBase)
    In This Topic
    Returns an array of rectangles, which represent optimal decomposition of the specified rectangle.
    Syntax
    'Declaration
    
    Public Overridable Function GetRegionOptimalDecomposition( _
    ByVal image
    Source image.
    As Vintasoft.Imaging.VintasoftImage, _
    ByVal rect
    Rectangle, which must be decomposed.
    As System.Drawing.Rectangle, _
    ByVal regionCount
    Count of regions in decomposition.
    As Integer, _
    ByRef requiredMargin
    Margin, in pixels, for each rectangle, which is necessary for correct work of algorithm.
    As Integer _
    ) As System.Drawing.Rectangle

    Parameters

    image
    Source image.
    rect
    Rectangle, which must be decomposed.
    regionCount
    Count of regions in decomposition.
    requiredMargin
    Margin, in pixels, for each rectangle, which is necessary for correct work of algorithm.

    Return Value

    Array of rectangles, which represent optimal decomposition of the specified rectangle.
    Remarks

    Parallel execution of command is not necessary if command returns one rectangle and rectangle is equal to the source rectangle (value of rect parameter).

    Requirements

    Target Platforms: .NET 7; .NET 6; .NET 5; .NET Core 3.1; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also