MCPcopy Create free account
hub / github.com/Tencent/tgfx / allocPixels

Method allocPixels

src/core/Bitmap.cpp:59–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59bool Bitmap::allocPixels(int width, int height, bool alphaOnly, bool tryHardware) {
60 pixelRef = PixelRef::Make(width, height, alphaOnly, tryHardware);
61 if (pixelRef != nullptr) {
62 _info = pixelRef->info();
63 }
64 return pixelRef != nullptr;
65}
66
67void* Bitmap::lockPixels() {
68 if (pixelRef == nullptr) {

Callers 3

readScaledPixelsMethod · 0.80
CopyBitmapMethod · 0.80
mainFunction · 0.80

Calls 1

MakeFunction · 0.85

Tested by

no test coverage detected