horizontalScaleNearest

Horizontal scaling using nearest integer algorithm for per-line operations. Intended to use with arrays that might contain elements less than 8 bit in length.

@nogc pure nothrow
void
horizontalScaleNearest
(
ArrayType
)
(
ArrayType src
,
ArrayType dest
,
sizediff_t length
,,
sizediff_t offset = 0
)

Parameters

src ArrayType

Source of the line to be transformed. Must be large enough to support the destination output with the given transformation params.

dest ArrayType

Destination of the transformed line.

length sizediff_t

Length of the output. Must be less or eaqual than the dest buffer. Use function "scaleNearestLength" to calculate the needed output length.

trfmParam int

Transformation parameter.

offset sizediff_t

Offset in the source line. This allows the source line to be offset by the given amount of fractional pixels. Default value is zero.

Meta