Blog graphics with GraphicsPath

Blog graphics with GraphicsPath
by Javier Menendez
Hello Javier with my IMac 27 inch under XOJO 3.1
and Macos Catalina there is a difference at Y height
at canvas.paint, there I have to subtract half the height from the y value
to get the right height.
yline = g.height / 2
curve.AddQuadraticCurveToPoint (dx (i), dx (i + 1) -yline, dx (i + 2), dx (i + 3) -yline)
The output in pictures is ok (value = 0)

otherwise the function is OK
see my little demo with all functions

https://www.dropbox.com/s/dpa3lgd0i9lz7wh/test-graphicsPath.xojo_binary_project?dl=1

There is a bug in GraphicsPath under macOS HiDPI that will be fixed in 2020r1. feedback://showreport?report_id=59334 GraphicsPath drawing no longer incorrectly offset on HiDPI Retina displays.

Thank you @Rudolf Jackel. You’re right. It seems I forgot that while typing!