Image.imageSpotlight(Int32, Int32, Int32, Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Produces a spotlight effect within the circle that is defined by radius with center coordinates x and y.
public:
virtual int imageSpotlight(int _x, int _y, int _radius, int _smoothing, int _intensity);
public virtual int imageSpotlight (int _x, int _y, int _radius, int _smoothing, int _intensity);
abstract member imageSpotlight : int * int * int * int * int -> int
override this.imageSpotlight : int * int * int * int * int -> int
Public Overridable Function imageSpotlight (_x As Integer, _y As Integer, _radius As Integer, _smoothing As Integer, _intensity As Integer) As Integer
Parameters
- _x
- Int32
The intensity of the surrounding pixels. The possible values are between 0 and 100 (%).
- _y
- Int32
The intensity of the surrounding pixels. The possible values are between 0 and 100 (%).
- _radius
- Int32
The intensity of the surrounding pixels. The possible values are between 0 and 100 (%).
- _smoothing
- Int32
The intensity of the surrounding pixels. The possible values are between 0 and 100 (%).
- _intensity
- Int32
The intensity of the surrounding pixels. The possible values are between 0 and 100 (%).
Returns
0 indicates success; otherwise, failure.
Remarks
The pixels within the circle are unchanged, but the other pixels in the image are darkened by reducing their intensity.