SkIRect rect = SkIRect::MakeLTRB(0, 0, 100, 50); int bottom = rect.bottom(); // bottom = 50
SkIRect rect = SkIRect::MakeEmpty(); rect.offset(0, 50); int bottom = rect.bottom(); // bottom = 50In this example, we create an empty SkIRect and then move it down by 50 pixels using the offset() method. We then get the value of the bottom member variable, which is also 50. These examples show that the bottom member variable is a useful tool for working with SkIRect objects. The SkIRect class is part of the Skia package library.