You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a png image with a height of more than 40,000 pixels, which is displayed in a WPF interface. When scrolling to the back part, the display is abnormal.
When I set the render mode to software, the image will be blue on the screen when scrolling down. RenderOptions.ProcessRenderMode = RenderMode.SoftwareOnly;
When I set the render mode to default, the program crashed with exception thrown:
Initial notes: 32768 offset works, 32769 breaks for me. That is very suspiciously close to short.MaxValue. Not related to scrolling, translate render transform exhibits the same, and since there is no overflow exception I am guessing there is some short offset in the native code. CroppedBitmap works as expected.
Description
I have a png image with a height of more than 40,000 pixels, which is displayed in a WPF interface. When scrolling to the back part, the display is abnormal.
When I set the render mode to software, the image will be blue on the screen when scrolling down.
RenderOptions.ProcessRenderMode = RenderMode.SoftwareOnly;
When I set the render mode to default, the program crashed with exception thrown:
Reproduction Steps
The source code is here: JerryJian/LargeImageTest
Change App.xaml.cs: RenderOptions.ProcessRenderMode = RenderMode.Software;
Compile the program, launch it
Scroll down, the screen become blue
Change App.xaml.cs: RenderOptions.ProcessRenderMode = RenderMode.Default;
Compile the program, launch it
Exception thrown on my computer
My system information:
Operating System: Windows Pro 11 24H2,
Version: 26100.2454,
Experience pack: 1000.26100.36.0
Graphics Card: NVIDIA GeForce GTX 1650
Driver version: 32.0.15.6094
DirectX version: 12 (FL 12.1)
Expected behavior
The large image display well when render mode is software.
Actual behavior
The large image displays abnormally.
Regression?
No response
Known Workarounds
No response
Impact
No response
Configuration
No response
Other information
No response
The text was updated successfully, but these errors were encountered: