Back to FabImage Library website
You are here: Start » Function Reference » All Functions » Array Transforms » FisFilter_ResizeArray_Relative
This is Filter Equivalent. This function may be present in generated code, but should not be used in hand-written code.
Header: | STD.h |
---|---|
Namespace: | fis |
Module: | FoundationLite |
Removes elements at the end of an array until it reaches the requested new size based on scale ratio.
Syntax
void fis::FisFilter_ResizeArray_Relative ( const ftl::Array<Type>& inArray, float inScale, ftl::Optional<int> inMinSize, ftl::Optional<int> inMaxSize, ftl::Array<Type>& outArray )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inArray | const Array<Type>& | ||||
inScale | float | 0.0 - 1.0 | 1.0f | ||
inMinSize | Optional<int> | 0 - | NIL | ||
inMaxSize | Optional<int> | 0 - | NIL | ||
outArray | Array<Type>& |
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | inMinSize is greater than inMaxSize in Resize_ArrayRelative. |
DomainError | Minimum size of new array is greater than input array size in ResizeArray_Relative. |