Add Data property to Avalonia.Media.Imaging.IImage #5702
PieroCastillo
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
This could be added to |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I've a question, is there possible add a Data property(as Stream or byte[]) to IImage, now I'm making a BlurryImage control (temporal name), but I found a problem (for me), there are two ways to do it only:
1, Use WriteableBitmap: Maybe seems the best option, but has a problem, if I wanna use DrawingImage or similar(derivates of IImages) this option is imposible, also if that is posible to render it takes to long(update big writeablebitmaps takes too long) also is CPU dependent.
2. Use SkiaSharp: In my opinion is the best option, 'cause render using GPU, and it's more fast(render bigs images takes less than 1 ms), but this has a problem, needs or a Stream or a File, with IImage this is impossible, IImage has Size & Draw method only.
In a nutshell, is it possible implement a Data property as Stream/byte array in IImage? this could be an advantage for Avalonia, too.
Beta Was this translation helpful? Give feedback.
All reactions