45 constexpr uint32_t kNoPitch = 0;
47 CFX_DIBitmap::CalculatePitchAndSize(width, height, dibFormat, kNoPitch);
48 if (!pitch_size.has_value())
51 if (pitch_size.value().size <= kImageSizeLimitBytes &&
52 bitmap_device_->Create(width, height, dibFormat)) {
void GetBackgroundToDevice(CFX_RenderDevice *device, const CPDF_PageObject *object, const CPDF_RenderOptions *options, const CFX_Matrix &matrix)