cropTo

Crops an image and stores the result in the provided target Pixmap.

The size of the area to crop 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 = crop(source, target, target.size, offset);

// → Instead do:
cropTo(source, target, offset);
@safe pure nothrow @nogc
void
cropTo

Meta