ScreenSampler

public sealed class ScreenSampler
Pick a colour off the screen.

Constructors

ScreenSampler

#
Create a new screenpicker instance with a target bitmap size of one pixel.
public ScreenSampler()

ScreenSampler

#
Create a new screenpicker instance.
public ScreenSampler(
Size
size
Bitmap size, should be an odd width and height.
)

Properties

Radius

#
Gets or sets the radius of the colour sampling.
public int Radius { get; set; }

Size

#
Gets the size of the screen picker region.
public Size Size { get; }

Methods

Sample

#
Sample the screen at a given location. This method may throw, you should only call it from a try...catch block.
public Color Sample(
PointF
location,
Sample location.
out Bitmap
bitmap
)
Color at location.

Sample

#
Sample the screen at a given location. This method may throw, you should only call it from a try...catch block.
public Color Sample(
PointF
location
Sample location.
)
Color at location.