Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Displaying high-resolution images while zooming in and out can consume excessive memory. #85

Open
chenayibin opened this issue Dec 20, 2024 · 1 comment

Comments

@chenayibin
Copy link

Hello, have you encountered this problem? When displaying a 10-million-pixel image using this library, the memory usage shows 300M, but when switching to a 25-million-pixel image, the memory usage increases to 900M. When zooming in and out, the memory usage reaches 3G. However, if the 25-million-pixel image is displayed from the beginning, there is no such increase in memory usage. What is the problem causing this? Thank you.

@chenayibin
Copy link
Author

Code:var bitmap = new Avalonia.Media.Imaging.Bitmap(@"C:\Users\opmt183\Desktop\1.bmp");
imageControl1.Source = bitmap;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant