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
CPDF_ImageObject Class Referencefinal

#include <cpdf_imageobject.h>

Inheritance diagram for CPDF_ImageObject:
Collaboration diagram for CPDF_ImageObject:

Public Member Functions

 CPDF_ImageObject (int32_t content_stream)
 CPDF_ImageObject ()
 ~CPDF_ImageObject () override
Type GetType () const override
void Transform (const CFX_Matrix &matrix) override
bool IsImage () const override
CPDF_ImageObject * AsImage () override
const CPDF_ImageObject * AsImage () const override
void CalcBoundingBox ()
void SetImage (RetainPtr< CPDF_Image > pImage)
RetainPtr< CPDF_Image > GetImage () const
RetainPtr< CFX_DIBitmap > GetIndependentBitmap () const
void SetImageMatrix (const CFX_Matrix &matrix)
const CFX_Matrix & matrix () const
Public Member Functions inherited from CPDF_PageObject
 CPDF_PageObject (int32_t content_stream)
 CPDF_PageObject (const CPDF_PageObject &src)=delete
CPDF_PageObject & operator= (const CPDF_PageObject &src)=delete
virtual ~CPDF_PageObject ()
virtual bool IsText () const
virtual bool IsPath () const
virtual bool IsShading () const
virtual bool IsForm () const
virtual CPDF_TextObject * AsText ()
virtual const CPDF_TextObject * AsText () const
virtual CPDF_PathObject * AsPath ()
virtual const CPDF_PathObject * AsPath () const
virtual CPDF_ShadingObject * AsShading ()
virtual const CPDF_ShadingObject * AsShading () const
virtual CPDF_FormObject * AsForm ()
virtual const CPDF_FormObject * AsForm () const
void SetDirty (bool value)
bool IsDirty () const
void TransformClipPath (const CFX_Matrix &matrix)
void SetOriginalRect (const CFX_FloatRect &rect)
const CFX_FloatRect & GetOriginalRect () const
void SetRect (const CFX_FloatRect &rect)
const CFX_FloatRect & GetRect () const
FX_RECT GetBBox () const
FX_RECT GetTransformedBBox (const CFX_Matrix &matrix) const
CPDF_ContentMarks * GetContentMarks ()
const CPDF_ContentMarks * GetContentMarks () const
void SetContentMarks (const CPDF_ContentMarks &marks)
int32_t GetContentStream () const
void SetContentStream (int32_t new_content_stream)
const ByteString & GetResourceName () const
void SetResourceName (const ByteString &resource_name)
pdfium::span< const ByteString > GetGraphicsResourceNames () const
const CPDF_ClipPath & clip_path () const
CPDF_ClipPath & mutable_clip_path ()
const CFX_GraphState & graph_state () const
CFX_GraphState & mutable_graph_state ()
const CPDF_ColorState & color_state () const
CPDF_ColorState & mutable_color_state ()
const CPDF_TextState & text_state () const
CPDF_TextState & mutable_text_state ()
const CPDF_GeneralState & general_state () const
CPDF_GeneralState & mutable_general_state ()
const CPDF_GraphicStates & graphic_states () const
void SetDefaultStates ()

Additional Inherited Members

Public Types inherited from CPDF_PageObject
enum class  Type {
  kText = 1 , kPath , kImage , kShading ,
  kForm
}
Static Public Attributes inherited from CPDF_PageObject
static constexpr int32_t kNoContentStream = -1
Protected Member Functions inherited from CPDF_PageObject
void CopyData (const CPDF_PageObject *pSrcObject)

Detailed Description

Definition at line 17 of file cpdf_imageobject.h.

Constructor & Destructor Documentation

◆ CPDF_ImageObject() [1/2]

CPDF_ImageObject::CPDF_ImageObject ( int32_t content_stream)
explicit

Definition at line 18 of file cpdf_imageobject.cpp.

References CPDF_PageObject::CPDF_PageObject().

Referenced by CPDF_ImageObject().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CPDF_ImageObject() [2/2]

CPDF_ImageObject::CPDF_ImageObject ( )

Definition at line 21 of file cpdf_imageobject.cpp.

References CPDF_ImageObject(), and CPDF_PageObject::kNoContentStream.

Here is the call graph for this function:

◆ ~CPDF_ImageObject()

CPDF_ImageObject::~CPDF_ImageObject ( )
override

Definition at line 23 of file cpdf_imageobject.cpp.

Member Function Documentation

◆ AsImage() [1/2]

const CPDF_ImageObject * CPDF_ImageObject::AsImage ( ) const
overridevirtual

Reimplemented from CPDF_PageObject.

Definition at line 45 of file cpdf_imageobject.cpp.

◆ AsImage() [2/2]

CPDF_ImageObject * CPDF_ImageObject::AsImage ( )
overridevirtual

Reimplemented from CPDF_PageObject.

Definition at line 41 of file cpdf_imageobject.cpp.

◆ CalcBoundingBox()

void CPDF_ImageObject::CalcBoundingBox ( )

Definition at line 49 of file cpdf_imageobject.cpp.

References CFX_FloatRect::CFX_FloatRect(), CPDF_PageObject::SetOriginalRect(), CPDF_PageObject::SetRect(), and CFX_Matrix::TransformRect().

Referenced by FPDFImageObj_SetBitmap(), SetImageMatrix(), and Transform().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetImage()

RetainPtr< CPDF_Image > CPDF_ImageObject::GetImage ( ) const

Definition at line 60 of file cpdf_imageobject.cpp.

Referenced by TEST().

Here is the caller graph for this function:

◆ GetIndependentBitmap()

RetainPtr< CFX_DIBitmap > CPDF_ImageObject::GetIndependentBitmap ( ) const

Definition at line 64 of file cpdf_imageobject.cpp.

Referenced by CPDF_Form::GetBitmapAndMatrixFromSoleImageOfForm().

Here is the caller graph for this function:

◆ GetType()

CPDF_PageObject::Type CPDF_ImageObject::GetType ( ) const
overridevirtual

Implements CPDF_PageObject.

Definition at line 27 of file cpdf_imageobject.cpp.

References CPDF_PageObject::kImage.

◆ IsImage()

bool CPDF_ImageObject::IsImage ( ) const
overridevirtual

Reimplemented from CPDF_PageObject.

Definition at line 37 of file cpdf_imageobject.cpp.

◆ matrix()

const CFX_Matrix & CPDF_ImageObject::matrix ( ) const
inline

Definition at line 36 of file cpdf_imageobject.h.

Referenced by FPDFImageObj_GetRenderedBitmap(), FPDFPageObj_GetMatrix(), FPDFPageObj_GetRotatedBounds(), and CPDF_Form::GetBitmapAndMatrixFromSoleImageOfForm().

Here is the caller graph for this function:

◆ SetImage()

void CPDF_ImageObject::SetImage ( RetainPtr< CPDF_Image > pImage)

Definition at line 55 of file cpdf_imageobject.cpp.

◆ SetImageMatrix()

void CPDF_ImageObject::SetImageMatrix ( const CFX_Matrix & matrix)

Definition at line 76 of file cpdf_imageobject.cpp.

References CalcBoundingBox(), and CFX_Matrix::operator=().

Referenced by FPDFImageObj_SetMatrix(), and FPDFPageObj_SetMatrix().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Transform()

void CPDF_ImageObject::Transform ( const CFX_Matrix & matrix)
overridevirtual

Implements CPDF_PageObject.

Definition at line 31 of file cpdf_imageobject.cpp.

References CalcBoundingBox(), CFX_Matrix::Concat(), and CPDF_PageObject::SetDirty().

Here is the call graph for this function:

The documentation for this class was generated from the following files: