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_ImageObjectAsImage () override
const CPDF_ImageObjectAsImage () const override
void CalcBoundingBox ()
void SetImage (RetainPtr< CPDF_Image > pImage)
RetainPtr< CPDF_ImageGetImage () const
RetainPtr< CFX_DIBitmapGetIndependentBitmap () const
void SetImageMatrix (const CFX_Matrix &matrix)
const CFX_Matrixmatrix () const
Public Member Functions inherited from CPDF_PageObject
 CPDF_PageObject (int32_t content_stream)
 CPDF_PageObject (const CPDF_PageObject &src)=delete
CPDF_PageObjectoperator= (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_TextObjectAsText ()
virtual const CPDF_TextObjectAsText () const
virtual CPDF_PathObjectAsPath ()
virtual const CPDF_PathObjectAsPath () const
virtual CPDF_ShadingObjectAsShading ()
virtual const CPDF_ShadingObjectAsShading () const
virtual CPDF_FormObjectAsForm ()
virtual const CPDF_FormObjectAsForm () const
void SetDirty (bool value)
bool IsDirty () const
void TransformClipPath (const CFX_Matrix &matrix)
void SetOriginalRect (const CFX_FloatRect &rect)
const CFX_FloatRectGetOriginalRect () const
void SetRect (const CFX_FloatRect &rect)
const CFX_FloatRectGetRect () const
FX_RECT GetBBox () const
FX_RECT GetTransformedBBox (const CFX_Matrix &matrix) const
CPDF_ContentMarksGetContentMarks ()
const CPDF_ContentMarksGetContentMarks () const
void SetContentMarks (const CPDF_ContentMarks &marks)
int32_t GetContentStream () const
void SetContentStream (int32_t new_content_stream)
const ByteStringGetResourceName () const
void SetResourceName (const ByteString &resource_name)
pdfium::span< const ByteStringGetGraphicsResourceNames () const
const CPDF_ClipPathclip_path () const
CPDF_ClipPathmutable_clip_path ()
const CFX_GraphStategraph_state () const
CFX_GraphStatemutable_graph_state ()
const CPDF_ColorStatecolor_state () const
CPDF_ColorStatemutable_color_state ()
const CPDF_TextStatetext_state () const
CPDF_TextStatemutable_text_state ()
const CPDF_GeneralStategeneral_state () const
CPDF_GeneralStatemutable_general_state ()
const CPDF_GraphicStatesgraphic_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: