ImageGear23.Processing.Advanced Assembly > ImageGear.Processing Namespace > ImGearEffects Class : Vignette(ImGearRasterPage,IImGearShape,Int32,Double,ImGearPixel,Boolean) Method |
'Declaration Public Shared Sub Vignette( _ ByVal page As ImGearRasterPage, _ ByVal shape As IImGearShape, _ ByVal smoothWidth As Integer, _ ByVal smoothFactor As Double, _ ByVal fillColor As ImGearPixel, _ ByVal fillInside As Boolean _ )
'Usage Dim page As ImGearRasterPage Dim shape As IImGearShape Dim smoothWidth As Integer Dim smoothFactor As Double Dim fillColor As ImGearPixel Dim fillInside As Boolean ImGearEffects.Vignette(page, shape, smoothWidth, smoothFactor, fillColor, fillInside)
public static void Vignette( ImGearRasterPage page, IImGearShape shape, int smoothWidth, double smoothFactor, ImGearPixel fillColor, bool fillInside )
public: static void Vignette( ImGearRasterPage* page, IImGearShape* shape, int smoothWidth, double smoothFactor, ImGearPixel* fillColor, bool fillInside )
public: static void Vignette( ImGearRasterPage^ page, IImGearShape^ shape, int smoothWidth, double smoothFactor, ImGearPixel^ fillColor, bool fillInside )
The behavior of this method depends on whether the image has an Alpha channel or not.
If the image does not have an Alpha channel, the method uses specified color to fill the shape. Use this mode to add a colored vignette to an image. In this mode, you will most likely set the fillInside parameter to false, to fill the borders of the image.
If the source image has an Alpha channel, the method only modifies the contents of the Alpha channel, and leaves color channels unchanged. It uses the alpha value of fillColor as the maximum opacity value for filling. Use this mode to create a semi-transparent vignette that can then be applied to other images. In this mode, you will most likely set the fillInside parameter to true, to make the interior transparent and leave the borders of the vignette opaque.