Want to use RMagick to create a PNG image of a gradient that goes from rgba(0,0,0,0.3) to rgba(0,0,0,0.7). Is this possible?
+1
A:
I guess it cannot be done. If you take a look at c code in here you will see that opacity is automatically set to OpaqueOpacity. Furthermore, if you take a look at how fills are implemented, they only write the image.
On the other hand, it could be done at a lower level. If the opacity is always the same, you can use an ImageList and then flatten it.
Serabe
2010-05-31 22:15:16