- Img.fillColor("transparent");
 
how to draw a transparent shape with Magick::draw()
- anthony
 - Posts: 8883
 - Joined: 2004-05-31T19:27:03-07:00
 - Authentication code: 8675308
 - Location: Brisbane, Australia
 
You can list the font names available with
convert -list type
			
			
									
						
							convert -list type
Anthony Thyssen   -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
			
						https://imagemagick.org/Usage/
- anthony
 - Posts: 8883
 - Joined: 2004-05-31T19:27:03-07:00
 - Authentication code: 8675308
 - Location: Brisbane, Australia
 
Im is attempting to fill with the transparent color, however the image you created does not have an alpha channel to handle a transparent color.
As "none" is actually fully-transparent black, the fill color comes out as black.
To fix add a -matte option before your -draw to ensure the image has a transparent channel. Or set the canvas with a color containing transparency
for example: xc:none or xc:#FF000000
I am not sure how you do this in an API.
			
			
									
						
							As "none" is actually fully-transparent black, the fill color comes out as black.
To fix add a -matte option before your -draw to ensure the image has a transparent channel. Or set the canvas with a color containing transparency
for example: xc:none or xc:#FF000000
I am not sure how you do this in an API.
Anthony Thyssen   -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
			
						https://imagemagick.org/Usage/