ImageGear Professional for Windows ActiveX
LensFlare Method

Description:

Applies a lens flare effect to the image. 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.

Syntax:

Sub LensFlare(Page As IGPage, xPos As Long, yPos As Long,
primaryBrightness As Single, secondaryBrightness As Single,
flareType As enumIGFXLensFlareType)

Parameters:

Name Description
Page IGPage Object to which to apply the effect.
xPos X coordinate of the primary flare.
yPos Y coordinate 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.

Return Value:

N/A

Bits Per Pixel:

RGB-based color spaces only.

Sample:

Image Processing and Effects

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback