Programming Language: C++ (Cpp)

Class/Type: SkIRect

Method/Function: intersect

Examples at hotexamples.com: 16

SkIRect is a class in the Skia graphics library that represents a rectangular region defined by integer coordinates. The intersect method of SkIRect is used to calculate the intersection between two SkIRect objects.

Example code:

Example code:

SkIRect rect1 = SkIRect::MakeXYWH(0, 0, 100, 100); SkIRect rect2 = SkIRect::MakeXYWH(50, 50, 100, 100); SkIRect intersectRect = rect1.intersect(rect2);In this example, we create two SkIRect objects, `rect1` and `rect2`, and use the `intersect` method to calculate the intersection between them. The resulting `intersectRect` will be a new SkIRect object representing the area where `rect1` and `rect2` overlap. Package/library: Skia Graphics Library.

Frequently Used Methods

Frequently Used Methods

Frequently Used Methods