| |

VerySource

 Forgot password?
 Register
Search
View: 791|Reply: 5

Color conversion

[Copy link]

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-1-30 14:00:01
| Show all posts |Read mode
How to convert from Red 178 Green 180 Blue 191 to Color?
Reply

Use magic Report

1

Threads

26

Posts

14.00

Credits

Newbie

Rank: 1

Credits
14.00

 China

Post time: 2020-3-7 16:00:02
| Show all posts
Color col = Color.FromArgb (255,178,180,191);
Reply

Use magic Report

0

Threads

31

Posts

17.00

Credits

Newbie

Rank: 1

Credits
17.00

 Unknown

Post time: 2020-3-7 17:00:01
| Show all posts
COLOR has a static method, or the color structure has a corresponding constructor
Reply

Use magic Report

0

Threads

52

Posts

34.00

Credits

Newbie

Rank: 1

Credits
34.00

 China

Post time: 2020-3-7 21:45:01
| Show all posts
Color c = Color.FromArgb (178,180,191);
Reply

Use magic Report

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

 Author| Post time: 2020-3-9 13:30:02
| Show all posts
Thanks everyone!
Reply

Use magic Report

1

Threads

3

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-3-10 10:30:01
| Show all posts
FromArgb is not the same as RGB.

If you want to convert with RGB, you need to do a corresponding pair of functions. Otherwise, the color values ​​will be different when they are interchanged.
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