Module util

Module util 

Source
Expand description

Rendering utilities

Enums§

TextAlignment
Alignment enumeration

Functions§

calculate_bounds_for_text
Calculates bounds for text with provided font and parameters
get_alignment_position_for_text
Calculates where text should be rendered for specified alignment and other parameters
image_from_horiz_gradient
Generates horizontal gradient image of specified size
image_from_solid
Generates solid color image of specified size
image_from_vert_gradient
Generates vertical gradient image of specified size
render_aligned_shadowed_text_on_image
Renders aligned shadowed text onto provided image with specified parameters
render_aligned_text_on_image
Renders aligned text onto provided image with specified parameters
render_box_on_image
Renders box with provided parameters onto provided image
render_shadowed_text_on_image
Renders text with shadows from font and parameters onto provided image
render_text_on_image
Renders text from font and parameters onto provided image
resize_for_streamdeck
Resizes image to specified size