SkBitmap bitmap; bitmap.allocN32Pixels(512, 512, SkColorType::kRGBA_8888_SkColorType);
SkBitmap bitmap; SkImageDecoder::DecodeFile("image.png", &bitmap, SkColorType::kN32_SkColorType, SkImageDecoder::kDecodePixels_Mode);
int width = bitmap.width(); int height = bitmap.height();This code gets the width and height of the bitmap. Overall, SkBitmap is part of the Skia graphics library package.