I apologize for my English. I hope I make myself understood
I've tried everything:
- Write a JPG instead of PNG
- Multiply and / or divide CX and / or CY for a series of constants (0.5, 1.333, 1/1201, etc.).
- Define CX and CY as variables LONG instead of INT
- The same but just considering or CX or CY
- Add some DoEvents
- I verified that the image directly on the smartphone was actually "messed up" and was not responsible for the procedure for viewing (ie TouchImageView)
- Writing
C.DrawPoint (1200-CX, 1200-CY, ColoreX)
instead of
C.DrawPoint (CX, CY, ColoreX)
- At the end of the writing of the points I put 2 instructions that draw a cross.
C.DrawLine (0,0, MaxDem-1, MaxDem-1, Colors.Red, 1dip)
C.DrawLine (1,0,0-MaxDem, MaxDem-1, Colors.Blue, 1dip)
The two lines are perfect and combine the 4 corners of the square.
What else do you think ?