-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
ArraySection length is not enough for large image file #17
Comments
Thank you for your report.
If I'm not mistaken this is in the WPF package but a similar issue may exist in the other ones, too. I'm going to fix this soon. |
I've just realized that this issue cannot be really fixed due to some internal WPF limitations, at least not easily. In your screenshot the bottom line, which is mostly covered by the watch window, is a The funny thing is that they eventually cast the Possible solutions
+1: If it turns out that solution 2. works for bitmaps between 2 and 4 GB size, then you can file an issue in the WPF repo to relax the signed buffer size limit to allow the easier creation/copy of huge bitmaps. Edit: I've just found a related WPF issue. |
Thank you for your feedback. Because the pictures I am dealing with now are much larger than 4GB, I feel that I must change my thinking to solve this problem, such as directly reading the thumbnail of the visible area size from the picture file, and modifying the original picture by scaling the user operation proportionally through the scaling factor. |
I don't know whether it's a possible way for you to migrate to SkiaSharp but the And you can even display Skia bitmaps in a WPF application, though I don't know how such huge images are supported. |
the length is integer in ArraySection, if image is too big will out of range
could you please update the type to long? or is there any ideas? thanks!
The text was updated successfully, but these errors were encountered: