ColorBlends
2 つの値が異なるかどうかを確認するにはどうすればColors
よいですか?
次のコードを試しました
ColorBlend Blend1 = new ColorBlend();
Blend1.Colors = new Color[] { Color.White, Color.Black };
Blend1.Positions = new float[] { 0.0f, 1.0f };
ColorBlend Blend2 = new ColorBlend();
Blend2.Colors = new Color[] { Color.White, Color.Black };
Blend2.Positions = new float[] { 0.0f, 1.0f };
if (Blend1.Colors != Blend2.Colors)
{
MessageBox.Show("Values are Different");
}
Colors
両方の値が同じでBlends
ある場合でも、それらは等しくないと言われるため、機能しません!