Image API
January 6, 2026 ยท View on GitHub
The webcc::image module provides functions for loading images.
Header
#include "webcc/image.h"
Functions
load
Loads an image from the specified URL. Returns an Image handle, which can be implicitly converted to DOMElement for use with DOM functions.
webcc::Image load(webcc::string_view src);
This handle can be used with webcc::canvas::draw_image.