ImageGear .NET v25.2 - Updated
ImageGear.Processing.Advanced Assembly / ImageGear.Processing Namespace / ImGearEffects Class / LensFlare Method
Image to apply lens flare effect to.
Position of the primary flare.
Brightness of the primary flare. This value should range from 0 to 1.
Brightness of the secondary flare. This value should range from 0 to 1.
Predefined flare type to use. Determines the shape and appearance of the lens flare elements.




In This Topic
    LensFlare Method
    In This Topic
    Applies a lens flare effect to the image.
    Syntax
    'Declaration
     
    Public Shared Sub LensFlare( _
       ByVal page As ImGearRasterPage, _
       ByVal flareCenter As ImGearPoint, _
       ByVal primaryBrightness As Double, _
       ByVal secondaryBrightness As Double, _
       ByVal flareType As ImGearLensFlareType _
    ) 
    'Usage
     
    Dim page As ImGearRasterPage
    Dim flareCenter As ImGearPoint
    Dim primaryBrightness As Double
    Dim secondaryBrightness As Double
    Dim flareType As ImGearLensFlareType
     
    ImGearEffects.LensFlare(page, flareCenter, primaryBrightness, secondaryBrightness, flareType)

    Parameters

    page
    Image to apply lens flare effect to.
    flareCenter
    Position of the primary flare.
    primaryBrightness
    Brightness of the primary flare. This value should range from 0 to 1.
    secondaryBrightness
    Brightness of the secondary flare. This value should range from 0 to 1.
    flareType
    Predefined flare type to use. Determines the shape and appearance of the lens flare elements.
    Remarks
    The effect simulates a bright light, such as the sun, and some reflections within the lens. It is typically used to add a sense of drama or realism to a photographic image.
    See Also