Module streamduck_core::util::rendering
source · [−]Expand description
Rendering utilities
Enums
Alignment enumeration
Functions
Calculates bounds for text with provided font and parameters
Calculates where text should be rendered for specified alignment and other parameters
Generates horizontal gradient image of specified size
Generates solid color image of specified size
Generates vertical gradient image of specified size
Loads image from provided path and resizes it to specified size
Renders aligned shadowed text onto provided image with specified parameters
Renders aligned text onto provided image with specified parameters
Renders box with provided parameters onto provided image
Renders text with shadows from font and parameters onto provided image
Renders text from font and parameters onto provided image
Resizes image to specified size