def sepia(slide_space): """ Apply a sepia effect to the photo. :param slide_space: container with the pisak slide instance inside """ slide = slide_space.get_children()[0] if slide.image_buffer is None: slide.image_buffer = image.ImageBuffer() slide.image_buffer.sepia()
def zoom(slide_space): """ Zoom the photo. :param slide_space: container with the pisak slide instance inside """ slide = slide_space.get_children()[0] if slide.image_buffer is None: slide.image_buffer = image.ImageBuffer() slide.image_buffer.zoom()
def rotate(slide_space): """ Rotate the photo for 90 degrees. :param slide_space: container with the pisak slide instance inside """ slide = slide_space.get_children()[0] if slide.image_buffer is None: slide.image_buffer = image.ImageBuffer() slide.image_buffer.rotate()
def save(slide_space): """ Save the photo. :param slide_space: container with the pisak slide instance inside. """ slide = slide_space.get_children()[0] if slide.image_buffer is None: slide.image_buffer = image.ImageBuffer() slide.save_buffer()
def invert(slide_space): """ Apply a color invert effect to the photo. :param slide_space: container with the pisak slide instance inside. """ slide = slide_space.get_children()[0] if slide.image_buffer is None: slide.image_buffer = image.ImageBuffer() slide.image_buffer.invert()
def original(slide_space): """ Remove all the applied effects an operations and go back to the original photo. :param slide_space: container with the pisak slide instance inside """ slide = slide_space.get_children()[0] if slide.image_buffer is None: slide.image_buffer = image.ImageBuffer() slide.image_buffer.original()