< Previous | Contents | Next >
— ErDl_Red, ErDl_Green, ErDl_Blue, ErDl_Alpha
These four tags are used to indicate which channels of the image to affect. A value of true enables the operation for the channel. A value of false disables it. The default behaviour if this tag is not specified is true.
function Process(req)
local img = InImage:GetValue(req)
local amount = InAmount:GetValue(req).Value local result = Image({IMG_Like = img})
img:ErodeDilate(result, { ErDl_Filter = "Box", ErDl_Red = true, ErDl_Green = true, ErDl_Blue = true, ErDl_Alpha = true,
ErDl_AmountX = amount/img.OriginalWidth, ErDl_AmountY = amount/img.OriginalWidth,
})
OutImage:Set(req, result)
end