The OpenD Programming Language

scaleTo

Scales a pixmap and stores the result in the provided target Pixmap.

The size to scale the image to is derived from the size of the target.

// This function can be used to omit a redundant size parameter
// in cases like this:
target = scale(source, target, target.size, ScalingFilter.bilinear);

// → Instead do:
scaleTo(source, target, ScalingFilter.bilinear);
@safe pure nothrow @nogc
void
scaleTo

Meta