 |
Forums |
Admin Discussion Forums: help Start New Thread
| Message: 96637 |
 |
BY: Kevin Kapalud (kapauldo) DATE: 2011-06-17 11:34 SUBJECT: opaque border around transparent rectangle sorry if this is the wrong forum, but i can't locate an RMagick forum. I am trying to accomplish something simple which is turning out to be a disaster.
I simply want to take a transparent image and put a non-transparent border around it. I've tried the border method (the center comes out opaque black), I've tried the matte_flood_fill method (the entire image is transparent). Anyone have any idea how to accomplish this? Basically, I want a framed transparent rectangle.
Here's what I've tried-
hole = Magick::Image.new(95,95) do
{
self.background_color = Magick::Pixel.new(255, 255, 255, 255)
}
result = hole.border(5,5,"red")
This results in a black image with a red border.
Anyone have any ideas how to accomplish this?
Thanks,
Kevin | |
Thread View
| Thread |
Author |
Date |
 |
opaque border around transparent rectangle | Kevin Kapalud | 2011-06-17 11:34 | |
Post a followup to this message
|
 |