Lines Matching refs:pixels
122 void* pixels = OH_Drawing_BitmapGetPixels(bitmap);
123 EXPECT_NE(pixels, nullptr);
125 bitmap_ = OH_Drawing_BitmapCreateFromPixels(&imageInfo, pixels, rowBytes);
127 bitmap_ = OH_Drawing_BitmapCreateFromPixels(&imageInfo, pixels, 0);
167 void* pixels = new uint32_t[width * height];
170 res = OH_Drawing_BitmapReadPixels(nullptr, &imageInfo, pixels, width * 4, 0, 0);
172 res = OH_Drawing_BitmapReadPixels(bitmap_, nullptr, pixels, width * 4, 0, 0);
176 res = OH_Drawing_BitmapReadPixels(bitmap_, &imageInfo, pixels, width * 4, 0, 0);
178 if (pixels != nullptr) {
179 delete[] reinterpret_cast<uint32_t*>(pixels);
180 pixels = nullptr;