Fix blend modes and opacity on raster data (#1996)

* Apply alpha blending to images when using vello

* Fix bounds for image layer

* Fix rendering for non vello images
This commit is contained in:
Dennis Kobert
2024-09-20 22:42:39 +02:00
committed by GitHub
parent 768ca0c535
commit 32da545a49
3 changed files with 26 additions and 8 deletions

View File

@@ -1,6 +1,7 @@
use crate::text::FontCache;
use crate::transform::{Footprint, Transform, TransformMut};
use crate::vector::style::ViewMode;
use crate::AlphaBlending;
use dyn_any::{DynAny, StaticType, StaticTypeSized};
@@ -70,6 +71,7 @@ pub struct TextureFrame {
#[cfg(not(feature = "wgpu"))]
pub texture: (),
pub transform: DAffine2,
pub alpha_blend: AlphaBlending,
}
impl Hash for TextureFrame {