mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-03 18:29:09 +00:00
WIP: Make image decoding a feature of the core library
This includes the cache of decoded images, the HTMLImage element support and the SVG rendering adapter. The objective is that Image holds an ImageInner, which is not a path anymore that the backend has to process, but instead always either decoded image data, a pointer to a static texture or an SVG tree that can be rendered to the desired size.
This commit is contained in:
parent
29d28dc73e
commit
67a2f0ce3f
22 changed files with 448 additions and 282 deletions
|
@ -21,7 +21,7 @@ public:
|
|||
static Image load_from_path(const SharedString &file_path)
|
||||
{
|
||||
Image img;
|
||||
img.data = Data::ImageInner_AbsoluteFilePath(file_path);
|
||||
cbindgen_private::types::slint_image_load_from_path(&file_path, &img.data);
|
||||
return img;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue