.net - Why Color.FromArgb(255, 255, 255, 255) != Color.White? -


why color.fromargb(255, 255, 255, 255) not equal color.white ? there built-in way compare a,r,g,b values , not color names?

thanks.

see http://msdn.microsoft.com/en-us/library/e03x8ct2(vs.85).aspx

this structure comparisons other color structures. compare colors based solely on argb values, should use toargb method. because equals , op_equality members determine equivalency using more argb value of colors. example, black , fromargb(0,0,0) not considered equal, since black named color , fromargb(0,0,0) not.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -