Skip to content

Commit d4b5e3f

Browse files
committed
Merge pull request cats-oss#171 from ilfuriano/master
add flip options to setRotation
2 parents d90c9f5 + 22d0855 commit d4b5e3f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

library/src/jp/co/cyberagent/android/gpuimage/GPUImage.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,15 @@ public void setRotation(Rotation rotation) {
201201
mRenderer.setRotation(rotation);
202202
}
203203

204+
/**
205+
* Sets the rotation of the displayed image with flip options.
206+
*
207+
* @param rotation new rotation
208+
*/
209+
public void setRotation(Rotation rotation, boolean flipHorizontal, boolean flipVertical) {
210+
mRenderer.setRotation(rotation, flipHorizontal, flipVertical);
211+
}
212+
204213
/**
205214
* Deletes the current image.
206215
*/

0 commit comments

Comments
 (0)