Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
cfx_bitmapstorer.h
Go to the documentation of this file.
1// Copyright 2017 The PDFium Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7#ifndef CORE_FXGE_DIB_CFX_BITMAPSTORER_H_
8#define CORE_FXGE_DIB_CFX_BITMAPSTORER_H_
9
10#include <stdint.h>
11
12#include "core/fxcrt/retain_ptr.h"
13#include "core/fxcrt/span.h"
14#include "core/fxge/dib/scanlinecomposer_iface.h"
15
16class CFX_DIBitmap;
17
18class CFX_BitmapStorer final : public ScanlineComposerIface {
19 public:
21 ~CFX_BitmapStorer() override;
22
23 // ScanlineComposerIface:
24 void ComposeScanline(int line, pdfium::span<const uint8_t> scanline) override;
25 bool SetInfo(int width,
26 int height,
27 FXDIB_Format src_format,
28 DataVector<uint32_t> src_palette) override;
29
30 RetainPtr<CFX_DIBitmap> GetBitmap() { return m_pBitmap; }
31 RetainPtr<CFX_DIBitmap> Detach();
32 void Replace(RetainPtr<CFX_DIBitmap>&& pBitmap);
33
34 private:
35 RetainPtr<CFX_DIBitmap> m_pBitmap;
36};
37
38#endif // CORE_FXGE_DIB_CFX_BITMAPSTORER_H_
bool Continue(PauseIndicatorIface *pPause)
CFX_AggImageRenderer(const RetainPtr< CFX_DIBitmap > &pDevice, const CFX_AggClipRgn *pClipRgn, RetainPtr< const CFX_DIBBase > source, float alpha, uint32_t mask_color, const CFX_Matrix &matrix, const FXDIB_ResampleOptions &options, bool bRgbByteOrder)
RetainPtr< CFX_DIBitmap > GetBitmap()
void ComposeScanline(int line, pdfium::span< const uint8_t > scanline) override
~CFX_BitmapStorer() override
void Replace(RetainPtr< CFX_DIBitmap > &&pBitmap)
RetainPtr< CFX_DIBitmap > Detach()
bool SetInfo(int width, int height, FXDIB_Format src_format, DataVector< uint32_t > src_palette) override
FX_RECT GetOuterRect() const
CFX_ImageTransformer(RetainPtr< const CFX_DIBBase > source, const CFX_Matrix &matrix, const FXDIB_ResampleOptions &options, const FX_RECT *pClip)
RetainPtr< CFX_DIBitmap > DetachBitmap()
bool Continue(PauseIndicatorIface *pPause)
const FX_RECT & result() const
CFX_FloatRect GetUnitRect() const
CFX_Matrix(const CFX_Matrix &other)=default
#define FXARGB_MUL_ALPHA(argb, alpha)
Definition fx_dib.h:200
FXDIB_Format
Definition fx_dib.h:21
int FXSYS_roundf(float f)
UNOWNED_PTR_EXCLUSION CFX_DIBitmap * bitmap
void Offset(int dx, int dy)
FX_RECT & operator=(const FX_RECT &that)=default
int Height() const
int Width() const
int32_t top
FX_RECT SwappedClipBox(int width, int height, bool bFlipX, bool bFlipY) const
int32_t left
void Intersect(const FX_RECT &src)
bool IsEmpty() const
#define UNOWNED_PTR_EXCLUSION