0
img1 = Magick::Image.read("public/123.png").first
img1.background_color = "none"

img1.rotate!(30)
img1.write('test.png')

背景颜色是黑色的,透明度如何

任何人,帮助?

4

1 回答 1

1
img1 = Magick::Image.read("public/123.png").first
img1.background_color = "transparent"

img1.rotate!(30)
img1.write('test.png')
于 2013-07-10T00:29:08.217 回答