#include "SkBitmap.h" #include "SkRect.h" int main() { SkBitmap bitmap; bitmap.setConfig(SkBitmap::kARGB_8888_Config, 100, 200); bitmap.allocPixels(); SkIRect bounds = bitmap.getBounds(); // Print the bounds printf("Width: %d Height: %d", bounds.width(), bounds.height()); return 0; }In this example, a SkBitmap object is created and its config and dimensions are set. The bitmap is then allocated pixels and the bounds are retrieved using getBounds function. The width and height of the bounds are then printed. Package: Skia graphics library.