Lines Matching refs:pixels
138 void* pixels = OH_Drawing_BitmapGetPixels(bitmap);
139 EXPECT_NE(pixels, nullptr);
141 bitmap_ = OH_Drawing_BitmapCreateFromPixels(&imageInfo, pixels, rowBytes);
143 bitmap_ = OH_Drawing_BitmapCreateFromPixels(&imageInfo, pixels, 0);
183 void* pixels = new uint32_t[width * height];
186 res = OH_Drawing_BitmapReadPixels(nullptr, &imageInfo, pixels, width * 4, 0, 0);
188 res = OH_Drawing_BitmapReadPixels(bitmap_, nullptr, pixels, width * 4, 0, 0);
192 res = OH_Drawing_BitmapReadPixels(bitmap_, &imageInfo, pixels, width * 4, 0, 0);
194 if (pixels != nullptr) {
195 delete[] reinterpret_cast<uint32_t*>(pixels);
196 pixels = nullptr;