mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-28 04:45:13 +00:00
C++ Image API: introduce the SharedPixelBuffer
This commit is contained in:
parent
be47c8464c
commit
ef7fb6422a
5 changed files with 136 additions and 41 deletions
|
@ -230,8 +230,7 @@ public:
|
|||
///
|
||||
/// The stride is the amount of pixels between two lines in the buffer.
|
||||
/// It is must be at least as large as the width of the window.
|
||||
void render(std::span<slint::cbindgen_private::Rgb8Pixel> buffer,
|
||||
std::size_t pixel_stride) const
|
||||
void render(std::span<slint::Rgb8Pixel> buffer, std::size_t pixel_stride) const
|
||||
{
|
||||
cbindgen_private::slint_software_renderer_render_rgb8(inner, buffer.data(), buffer.size(),
|
||||
pixel_stride);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue