SkBitmap myBitmap; int height = myBitmap.height();
SkBitmap myBitmap; myBitmap.setInfo(SkImageInfo::MakeN32Premul(100, 200)); myBitmap.setHeight(300);
SkBitmap myBitmap; myBitmap.allocN32Pixels(100, 200, true); myBitmap.setHeight(300);This code creates a new SkBitmap object named `myBitmap` with a height of 200 pixels and allocates memory for a 100x200 pixel bitmap. It then increases the height of the bitmap to 300 pixels using the `setHeight()` function. Package/library: Skia Graphics Library.