mirror of
https://github.com/slint-ui/slint.git
synced 2025-11-02 04:48:27 +00:00
swrenderer: Optimize image drawing by using premultiplied colors
This commit is contained in:
parent
ca74f91320
commit
014c827194
6 changed files with 102 additions and 37 deletions
|
|
@ -16,6 +16,8 @@ pub enum PixelFormat {
|
|||
Rgb,
|
||||
// 32 bit RGBA
|
||||
Rgba,
|
||||
// 32 bit RGBA, but the RGB values are pre-multiplied by the alpha
|
||||
RgbaPremultiplied,
|
||||
// 8bit alpha map with a given color
|
||||
AlphaMap([u8; 3]),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue