Inherits from
- GraphicsContextArray: enthought.kiva.agg.agg.GraphicsContextArray
Method summary
- __init__(self, size_or_ary, dpi = 72.0, *args, **kw)
- clip_to_rect(self, x, y, width, height)
- render_component(self, component, container_coords = False)
Inherited from base classes
- __del__(self, destroy = _agg.destroy_graphics_context)
- add_path(*args)
- arc(*args)
- arc_to(*args)
- begin_page(*args)
- begin_path(*args)
- bottom_up(*args)
- clear(*args)
- clear_clip_path(*args)
- clip(*args)
- clip_to_rects(*args)
- close_path(*args)
- concat_ctm(self, m)
- convert_pixel_format(self, pix_format, inplace = 0)
- curve_to(*args)
- draw_image(self, img, rect = None, force_copy = False)
- draw_marker_at_points(self, pts, size, kiva_marker_type)
- draw_path(*args)
- draw_path_at_points(*args)
- draw_rect(*args)
- end_page(*args)
- eof_fill_path(*args)
- even_odd_clip(*args)
- fill_path(*args)
- flush(*args)
- format(self)
- get_alpha(*args)
- get_antialias(*args)
- get_blend_mode(*args)
- get_character_spacing(*args)
- get_clip_region(*args)
- get_ctm(self)
- get_empty_path(self)
- get_fill_color(*args)
- get_font(*args)
- get_freetype_text_matrix(*args)
- get_full_text_extent(self, text)
- get_image_interpolation(self)
- get_num_clip_regions(*args)
- get_stroke_color(*args)
- get_text_extent(self, text)
- get_text_matrix(*args)
- get_text_position(*args)
- height(*args)
- is_font_initialized(*args)
- line_set(*args)
- line_to(*args)
- lines(*args)
- move_to(*args)
- quad_curve_to(*args)
- rect(*args)
- rects(*args)
- restore_state(*args)
- rotate_ctm(*args)
- save(self, filename, file_format = None, pil_options = None)
- save_state(*args)
- scale_ctm(*args)
- set_alpha(*args)
- set_antialias(*args)
- set_blend_mode(*args)
- set_character_spacing(*args)
- set_ctm(self, m)
- set_fill_color(self, color)
- set_flatness(*args)
- set_font(self, font)
- set_font_size(self, size)
- set_image_interpolation(self, interp)
- set_line_cap(*args)
- set_line_dash(*args)
- set_line_join(*args)
- set_line_width(*args)
- set_miter_limit(*args)
- set_stroke_color(self, color)
- set_text_drawing_mode(*args)
- set_text_matrix(*args)
- set_text_position(*args)
- show_text(self, text, point = None)
- show_text_at_point(self, text, dx, dy)
- show_text_simple(*args)
- stride(*args)
- stroke_path(*args)
- synchronize(*args)
- translate_ctm(*args)
- width(*args)
Methods
- __init__(self, size_or_ary, dpi = 72.0, *args, **kw)
- clip_to_rect(self, x, y, width, height)
Offsets the coordinate frame by (0.5, 0.5) and increases the actual size of the image by 1 pixel in each dimension.
Overrides Kiva GraphicsContext.
- render_component(self, component, container_coords = False)
Renders the given component.
Parameters
- component : Component
- The component to be rendered.
- container_coords : Boolean
- Whether to use coordinates of the component's container
Description
If container_coords is False, then the (0,0) coordinate of this graphics context corresponds to the lower-left corner of the component's outer_bounds. If container_coords is True, then the method draws the component as it appears inside its container, i.e., it treats (0,0) of the graphics context as the lower-left corner of the container's outer bounds.