flipΒΆ
-
void flip(string axis, size_t bpc)(Image!bpc image)
Flip
image
alongaxis
in-place.axis
may containx
,y
or both.Example:
auto image = load!8("daffodil.bmp"); image.flip!"x"(); // Flip the image horizontally image.flip!"y"(); // Flip the image vertically
-
Image!bpc flipped(string axis, size_t bpc)(const Image!bpc image)
Same as
flip
but performs the operation on a copy ofimage
. Allows for stringing operations together.Example:
auto image = load!8("daffodil.bmp"); // Flip along each axis individually, making a copy each time. auto flipped = image.flipped!"x".flipped!"y";
-
module daffodil.transform.flip