2013-05-06 129 views
0
img1 = Magick::Image.read("public/123.png").first 
img1.background_color = "none" 

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

背景色爲黑色,透明程度rmagic旋轉和背景色爲黑色

任何人,幫助嗎?

回答

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

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