用数组比较好像不行,a = "(255.000000,255.000000,255.000000,0.000000)"也不行,有办法吗?
[pre lang="ruby"]class A
def a
@abc = Sprite.new
@abc.bitmap = Bitmap.new("Graphics/weather/试验1.png")
a = "(255.000000,255.000000,255.000000,0.000000)"
b = @abc.bitmap.get_pixel(0,0)
if a == b
p 1
else
p 2
end
end
end[/pre]