The flop() function is an inbuilt function in the Pgmagick library which is used to create a mirror image in horizontal direction. The function returns the true value on success.
Syntax:
flip()
Parameters: This function does not accepts any parameter.
Return Value: This function returns the Pgmagick object with image added.