rmagic旋转和背景色为黑色
问题描述:
img1 = Magick::Image.read("public/123.png").first
img1.background_color = "none"
img1.rotate!(30)
img1.write('test.png')
背景色为黑色,透明程度rmagic旋转和背景色为黑色
任何人,帮助吗?
答
img1 = Magick::Image.read("public/123.png").first
img1.background_color = "transparent"
img1.rotate!(30)
img1.write('test.png')