lucasmerlin / egui_skia

Render egui with skia!
MIT License
55 stars 13 forks source link

No need to swap skia surface R & B #5

Closed rustytsuki closed 1 year ago

rustytsuki commented 1 year ago

skia surface type can be set by skia_safe::core::image_info::ColorType: like following code. let image_info = ImageInfo::new((px_w, px_h), ColorType::RGBA8888, AlphaType::Premul, None); let surface = Surface::new_raster(&image_info, None, None).unwrap();