SKRegion.Contains Method

Definition

Overloads

Contains(Int32, Int32)

Check to see if the specified coordinates are completely inside the current region.

Contains(SKRectI)

Check to see if the specified rect is completely inside the current region.

Contains(SKRegion)

Check to see if the specified region is completely inside the current region.

Contains(SKPath)

Check to see if the specified path is completely inside the current region.

Contains(SKPointI)

Check to see if the specified coordinates are completely inside the current region.

Contains(Int32, Int32)

Check to see if the specified coordinates are completely inside the current region.

public bool Contains (int x, int y);

Parameters

x
Int32

The x-coordinate to check with.

y
Int32

The y-coordinate to check with.

Returns

Returns true if the specified coordinates are completely inside the current region, otherwise false.

Applies to

Contains(SKRectI)

Check to see if the specified rect is completely inside the current region.

public bool Contains (SkiaSharp.SKRectI rect);

Parameters

rect
SKRectI

The rect to check with.

Returns

Returns true if the specified rect is completely inside the current region, otherwise false.

Remarks

If either the rect or the region is empty, this method returns false.

Applies to

Contains(SKRegion)

Check to see if the specified region is completely inside the current region.

public bool Contains (SkiaSharp.SKRegion src);

Parameters

src
SKRegion

The region to check with.

Returns

Returns true if the specified region is completely inside the current region, otherwise false.

Remarks

This works for simple (rectangular) and complex regions, and always returns the correct result. If either region is empty, this method returns false.

Applies to

Contains(SKPath)

Check to see if the specified path is completely inside the current region.

public bool Contains (SkiaSharp.SKPath path);

Parameters

path
SKPath

The path to check with.

Returns

Returns true if the specified path is completely inside the current region, otherwise false.

Remarks

This works for simple (rectangular) and complex path, and always returns the correct result. If either the path or the region is empty, this method returns false.

Applies to

Contains(SKPointI)

Check to see if the specified coordinates are completely inside the current region.

public bool Contains (SkiaSharp.SKPointI xy);

Parameters

xy
SKPointI

The coordinates to check with.

Returns

Returns true if the specified coordinates are completely inside the current region, otherwise false.

Applies to