| |

VerySource

 Forgot password?
 Register
Search
View: 673|Reply: 4

Will the display problem in VC!

[Copy link]

3

Threads

13

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

Post time: 2020-1-22 04:20:01
| Show all posts |Read mode
How to draw a point in VC, can there be functions to display it? I originally wanted to use the map method to post each point and display it like a bitmap, but it seems too slow, please advise!
Reply

Use magic Report

0

Threads

36

Posts

22.00

Credits

Newbie

Rank: 1

Credits
22.00

 China

Post time: 2020-1-31 23:45:01
| Show all posts
CDC :: FillRect is recommended.
If only one point is drawn, it is generally invisible to the naked eye, and usually larger.
COLORREF SetPixel (
  HDC hdc,
  int X,
  int Y,
  COLORREF crColor
);
Reply

Use magic Report

3

Threads

13

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

 Author| Post time: 2020-2-5 11:00:02
| Show all posts
What should I do if I want to display a point in a rectangular shape? Need to display a small rectangle?
Reply

Use magic Report

0

Threads

36

Posts

22.00

Credits

Newbie

Rank: 1

Credits
22.00

 China

Post time: 2020-2-9 14:45:01
| Show all posts
Yes, a small rectangle with length = 2 and width = 2 is displayed. If you still can't see it, you can draw a bigger one.
Reply

Use magic Report

3

Threads

13

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

 Author| Post time: 2020-3-7 02:45:02
| Show all posts
Thank you, I've now understood,
Would you like to know how the string pointer wraps?
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list