VintaSoft Imaging .NET SDK 15.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 System.Int32, _
ByRef requiredMargin
Margin, in pixels, for each rectangle, which is necessary for correct work of algorithm.
As System.Int32 _
) As System.Drawing.Rectangle
public virtual System.Drawing.Rectangle GetRegionOptimalDecomposition(
Vintasoft.Imaging.VintasoftImage image,
System.Drawing.Rectangle rect,
System.Int32 regionCount,
out System.Int32 requiredMargin
)

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 10; .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

See Also