MCPcopy Create free account
hub / github.com/HO-COOH/FastCopy / CanvasControl_Draw

Method CanvasControl_Draw

FastCopy/SpeedGraph.xaml.cpp:184–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182 }
183
184 void SpeedGraph::CanvasControl_Draw(winrt::Microsoft::Graphics::Canvas::UI::Xaml::CanvasControl const& sender, winrt::Microsoft::Graphics::Canvas::UI::Xaml::CanvasDrawEventArgs const& args)
185 {
186 auto drawingSession = args.DrawingSession();
187
188 auto const width = sender.ActualWidth();
189 auto const height = sender.ActualHeight();
190 auto const color = winrt::Windows::UI::ColorHelper::FromArgb(32, 255, 255, 255);
191
192 for (int i = 0; i < width; i += BackgroundCircleDistance)
193 {
194 for (int j = 0; j < height; j += BackgroundCircleDistance)
195 {
196 drawingSession.FillCircle(i, j, 1, color);
197 }
198 }
199 }
200
201 void SpeedGraph::UserControl_SizeChanged(winrt::Windows::Foundation::IInspectable const& sender, winrt::Microsoft::UI::Xaml::SizeChangedEventArgs const& e)
202 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected