When rendering huge visual effects in WPF, the visual is distorted and distorted with increasing coordinates. I assume it has something to do with the floating point data types used in the visualization pipeline, but I'm not quite sure. In any case, I am looking for a practical solution to the problem.
To demonstrate what I'm talking about, I created an example application that only contains a custom control built into ScrollViewer that draws a sine curve.
Here you can see that the figure is suitable for double values <= 2 ^ 24 (in this case, the value of the horizontal coordinate), but from this point it is distorted.
2 ^ 25, , .
, "" , . , , - , - , , .
- , ?
WPF.
, - (-Inf, + Inf) 32 (float)/64 (double) . , , 2 ^ 30.
64- (1), -9,223,372,036,854,775,808 +9,223,372,036,854,775,807.
(, , ).
Source: https://habr.com/ru/post/1771195/More articles:How to optimize this LINQ query for Visual Studio? - performanceSOAP / REST calls via XMPP - httpSilverlight iPad app - web-applicationsusing certificate in https - javaFlash (or Silverlight) on iPhone - flashUsing Enumerations - c ++Finding a Systematic, Comprehensive, and Complete Comparison of VB.NET and C # Syntax - syntaxQt crash warning: directory '/tmp/qt-stuff-6474/source/qt-everywhere-opensource-src-4.7.0/lib' after -L not found - qtAndroid - why does ContentObserver call itself? - androidI want to set up vim text shows in folded folds - vimAll Articles