mpl_visual_context.patheffects.ImageEffect
- class mpl_visual_context.patheffects.ImageEffect(image_effect, clip_path_getter=None, invisible_if_nill_clip_path=True)
Methods
clear
draw_path
draw_with_path_effect
get_image
get_rendered_image
init_renderer
update_gc_n_affine
- __init__(image_effect, clip_path_getter=None, invisible_if_nill_clip_path=True)
clip_path_getter: set the clip_path of the resulting image. Need to be a callable or an object with get_clip_path method, which returns a path and a transform.
invisible_if_nill_clip_path: if clip_path_getter is used and if it retune a nil path of length 0, do not draw the image. Default is True.
Methods
__init__(image_effect[, clip_path_getter, ...])clip_path_getter: set the clip_path of the resulting image.
clear()draw_path(renderer, gc, tpath, affine, rgbFace)draw_with_path_effect(path_effect, gc0, ...)get_image(renderer, gc, tpath, affine, rgbFace)get_rendered_image()init_renderer(renderer)update_gc_n_affine(gc, affine[, use_dpi_scale])