There were problems with flips on primary and secondary diagonals. I commented out adjustToImage(img) at the top of each ImageTransform method. As a result, from all the ImageTransform methods, I returned the whole display image as the new image. So, I'm not really working on the rectangular image I loaded from disk any longer, but on a PGraphics sized to the display. BitmapTransform methods then handle the display-sized image without problems. The display does not have to be a square.
However, this was not ideal, and it still isn't. Maybe I won't include ImageTransform in the first publication of the PixelAudio library. Solve it later.
There were problems with flips on primary and secondary diagonals. I commented out
adjustToImage(img)
at the top of eachImageTransform
method. As a result, from all theImageTransform
methods, I returned the whole display image as the new image. So, I'm not really working on the rectangular image I loaded from disk any longer, but on a PGraphics sized to the display.BitmapTransform
methods then handle the display-sized image without problems. The display does not have to be a square.However, this was not ideal, and it still isn't. Maybe I won't include
ImageTransform
in the first publication of the PixelAudio library. Solve it later.