Skip to main content

Module tiled_image_utils

Module tiled_image_utils 

Expand description

SkTiledImageUtils’ self::draw_image()/self::draw_image_rect() methods are intended to be direct replacements for their Canvas equivalents. The SkTiledImageUtils calls will break crate::Bitmap-backed Images into smaller tiles and draw them if the original image is too large to be uploaded to the GPU. If the original image doesn’t need tiling or is already gpu-backed the self::draw_image()/self::draw_image_rect() calls will fall through to the matching Canvas call.

Constants§

NUM_IMAGE_KEY_VALUES

Functions§

draw_image
draw_image_rect
get_image_key_values
Retrieves a set of values that can be used as part of a cache key for the provided image.