class documentation

class GifImageFormatter(ImageFormatter):

View In Hierarchy

Create a GIF image from source code. This uses the Python Imaging Library to generate a pixmap from the source code.

New in version 1.0.
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
aliases: list[str] =
default_image_format: str =
filenames: list[str] =
name: str =