width.times do |x|
height.times do |y|
unless temp.get_pixel(x, y) == white
(x - font.outline_size + 1).upto(x + font.outline_size - 1) do |i|
(y - font.outline_size + 1).upto(y + font.outline_size - 1) do |j|
set_pixel(i, j, font.out_color)
end
end
end
end
end
temp.dispose
end
end
[/pre]作者: 无脑之人 时间: 2014-5-2 15:30
偏移几像素多画几遍呗233,虽然这样很没效率