pisak.viewer package¶
pisak.viewer.description module¶
pisak.viewer.handlers module¶
Signal handlers specific for the viewer application.
-
pisak.viewer.handlers.
add_or_remove_from_favs
(slideshow_widget)[source]¶ Add or remove the currently displayed photo from the favourites.
Parameters: slideshow_widget – pisak slideshow instance.
-
pisak.viewer.handlers.
add_photo_to_favourites
(slideshow_widget)[source]¶ Add the currently displayed photo to the favourites.
Parameters: slideshow_widget – pisak slideshow instance.
-
pisak.viewer.handlers.
contour
(slide_space)[source]¶ Apply a contour effect to the photo.
Parameters: slide_space – container with the pisak slide instance inside.
-
pisak.viewer.handlers.
edges
(slide_space)[source]¶ Apply a edges effect to the photo.
Parameters: slide_space – container with the pisak slide instance inside.
-
pisak.viewer.handlers.
grayscale
(slide_space)[source]¶ Apply a grayscale effect to the photo.
Parameters: slide_space – container with the pisak slide instance inside.
-
pisak.viewer.handlers.
invert
(slide_space)[source]¶ Apply a color invert effect to the photo.
Parameters: slide_space – container with the pisak slide instance inside.
-
pisak.viewer.handlers.
mirror
(slide_space)[source]¶ Apply a mirror effect to the photo.
Parameters: slide_space – container with the pisak slide instance inside.
-
pisak.viewer.handlers.
next_slide
(slideshow_widget)[source]¶ Move to the next slide.
Parameters: slideshow_widget – pisak slideshow instance.
-
pisak.viewer.handlers.
noise
(slide_space)[source]¶ Apply a noise effect to the photo.
Parameters: slide_space – container with the pisak slide instance inside.
-
pisak.viewer.handlers.
original
(slide_space)[source]¶ Remove all the applied effects an operations and go back to the original photo.
Parameters: slide_space – container with the pisak slide instance inside.
-
pisak.viewer.handlers.
previous_slide
(slideshow_widget)[source]¶ Move to the previous slide.
Parameters: slideshow_widget – pisak slideshow instance.
-
pisak.viewer.handlers.
remove_photo_from_favourites
(slideshow_widget)[source]¶ Remove the currently displayed photo from the favourites.
Parameters: slideshow_widget – pisak slideshow instance.
-
pisak.viewer.handlers.
rotate
(slide_space)[source]¶ Rotate the photo for 90 degrees.
Parameters: slide_space – container with the pisak slide instance inside.
-
pisak.viewer.handlers.
save
(slide_space)[source]¶ Save the photo.
Parameters: slide_space – container with the pisak slide instance inside.
-
pisak.viewer.handlers.
sepia
(slide_space)[source]¶ Apply a sepia effect to the photo.
Parameters: slide_space – container with the pisak slide instance inside.
-
pisak.viewer.handlers.
slideshow_toggle
(slideshow_widget)[source]¶ Turn on or turn off the automatic slideshow.
Parameters: slideshow_widget – pisak slideshow instance.
pisak.viewer.image module¶
Module with operations on image data.
-
class
pisak.viewer.image.
ImageBuffer
[source]¶ Bases:
gi.repository.Clutter.Actor
,pisak.properties.PropertyAdapter
,pisak.configurator.Configurable
Buffer containing a currently edited photo.
-
PIXEL_FORMATS
= {'RGBA_2': <enum COGL_PIXEL_FORMAT_RGBA_4444 of type Cogl.PixelFormat>, 'L_1': <enum COGL_PIXEL_FORMAT_A_8 of type Cogl.PixelFormat>, 'RGB_3': <enum COGL_PIXEL_FORMAT_RGB_888 of type Cogl.PixelFormat>, 'RGB_2': <enum COGL_PIXEL_FORMAT_RGB_565 of type Cogl.PixelFormat>, 'RGBA_4': <enum COGL_PIXEL_FORMAT_RGBA_8888 of type Cogl.PixelFormat>, '1_1': <enum COGL_PIXEL_FORMAT_G_8 of type Cogl.PixelFormat>}¶
-
SAVE_CONCATENATED_STRING
= '_edited'¶
-
SAVE_DEFAULT_EXT
= 'JPEG'¶
-
SAVE_FORMATS
= ['JPEG', 'PNG', 'TIFF', 'BMP']¶
-
__gtype_name__
= 'PisakImageBuffer'¶
-
contour
(*args)[source]¶ Apply contour filter to the image.
Parameters: args – arguments passed when the function is registered as a signal handler.
-
edges
(*args)[source]¶ Apply edges filter to the image.
Parameters: args – arguments passed when the function is registered as a signal handler.
-
grayscale
(*args)[source]¶ Apply grayscale filter to the image.
Parameters: args – arguments passed when the function is registered as a signal handler.
-
invert
(*args)[source]¶ Invert colors of the image.
Parameters: args – arguments passed when the function is registered as a signal handler.
-
noise
(*args)[source]¶ Apply some random noise to the color bands of the image. This is performed as an animation.
Parameters: args – arguments passed when the function is registered as a signal handler.
-
original
(*args)[source]¶ Restore the original image.
Parameters: args – arguments passed when the function is registered as a signal handler.
-
path
¶ Path to the photo.
-
rotate
(*args)[source]¶ Rotate the image by 90 degs clockwise.
Parameters: args – arguments passed when the function is registered as a signal handler.
-
sepia
(*args)[source]¶ Apply sepia filter to the image.
Parameters: args – arguments passed when the function is registered as a signal handler.
-
slide
¶ Widget displaying the image.
-
pisak.viewer.model module¶
Photo library management center.