class GifImageFormatter(ImageFormatter):
Create a GIF image from source code. This uses the Python Imaging Library to generate a pixmap from the source code.
Class Variable | aliases |
Undocumented |
Class Variable | default_image_format |
Undocumented |
Class Variable | filenames |
Undocumented |
Class Variable | name |
Undocumented |
Inherited from ImageFormatter
:
Method | __init__ |
See the class docstring for explanation of options. |
Method | _create_drawables |
Create drawables for the token content. |
Method | _draw_line_numbers |
Create drawables for the line numbers. |
Method | _draw_linenumber |
Remember a line number drawable to paint later. |
Method | _draw_text |
Remember a single drawable tuple to paint later. |
Method | _get_char_width |
Get the width of a character. |
Method | _get_char_x |
Get the X coordinate of a character position. |
Method | _get_image_size |
Get the required image size. |
Method | _get_line_height |
Get the height of a line. |
Method | _get_line_y |
Get the Y coordinate of a line number. |
Method | _get_linenumber_pos |
Get the actual position for the start of a line number. |
Method | _get_style_font |
Get the correct font for the style. |
Method | _get_text_bg_color |
Get the correct background color for the token from the style. |
Method | _get_text_color |
Get the correct color for the token from the style. |
Method | _get_text_pos |
Get the actual position for a character and line position. |
Method | _paint_line_number_bg |
Paint the line number background on the image. |
Method | format |
Format tokensource, an iterable of (tokentype, tokenstring) tuples and write it into outfile. |
Method | get_style_defs |
Return the style definitions for the current style as a string. |
Class Variable | unicodeoutput |
Undocumented |
Instance Variable | background_color |
Undocumented |
Instance Variable | drawables |
Undocumented |
Instance Variable | encoding |
Undocumented |
Instance Variable | fonth |
Undocumented |
Instance Variable | fonts |
Undocumented |
Instance Variable | fontw |
Undocumented |
Instance Variable | hl_color |
Undocumented |
Instance Variable | hl_lines |
Undocumented |
Instance Variable | image_format |
Undocumented |
Instance Variable | image_pad |
Undocumented |
Instance Variable | line_number_bg |
Undocumented |
Instance Variable | line_number_bold |
Undocumented |
Instance Variable | line_number_chars |
Undocumented |
Instance Variable | line_number_fg |
Undocumented |
Instance Variable | line_number_italic |
Undocumented |
Instance Variable | line_number_pad |
Undocumented |
Instance Variable | line_number_separator |
Undocumented |
Instance Variable | line_number_start |
Undocumented |
Instance Variable | line_number_step |
Undocumented |
Instance Variable | line_number_width |
Undocumented |
Instance Variable | line_numbers |
Undocumented |
Instance Variable | line_pad |
Undocumented |
Instance Variable | maxcharno |
Undocumented |
Instance Variable | maxlinelength |
Undocumented |
Instance Variable | maxlineno |
Undocumented |
Instance Variable | styles |
Undocumented |
Inherited from Formatter
(via ImageFormatter
):
Instance Variable | full |
Undocumented |
Instance Variable | options |
Undocumented |
Instance Variable | style |
Undocumented |
Instance Variable | title |
Undocumented |