Home > Mobile >  MFC with cpen gridding, and then to draw the ellipse, how can I show is right?
MFC with cpen gridding, and then to draw the ellipse, how can I show is right?

Time:10-08

With cpen finished grid, each grid is saved, which can then be obtained by centerpoint center, can draw a straight line, rectangle, etc., are all these I get judged pixel color screen, this is better, but the ellipse not, sometimes lack, sometimes too much, please everyone a great god have relevant experience knowledge, thank you

CodePudding user response:

refer to the original poster Doze time response:
with cpen finished grid, each grid is saved, which can then be obtained by centerpoint center, can draw a straight line, rectangle, etc., these I is judged for pixel color screen, this is better, but the ellipse not, sometimes lack, sometimes too much, please everyone a great god have relevant experience knowledge, thank you

/storage/emulated/0/DCIM/Camera/IMG_20190813_113024. JPG

CodePudding user response:

How to upload pictures,,,,,,,

CodePudding user response:

Draw rectangle, because rectangles and lines are rules, so when the mouse up my side directly obtained screen pixels to determine the color, and then determine whether the grid area, in the grid will show black, also is the rectangular drawing out, through setROP2 (R2_NOTXORPEN) cancel the pen painted rectangular, obtained from the previous step rectangle all points, and then, according to the corresponding grid is a complete grid shows that the rectangle, oval what to do, like a straight line and rectangular doesn't work
  • Related