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
Image Class Reference
+ Collaboration diagram for Image:

Public Member Functions

 Image ()=default
 
 Image (const Image &image)=default
 
Imageoperator= (const Image &other)=default
 
bool has_image () const
 
int w () const
 
int h () const
 
pdfium::span< const uint8_t > span () const
 
bool CreateFromFilename (const std::string &path)
 
bool CreateFromFilenameWithReverseByteOrder (const std::string &path)
 
void Clear ()
 
uint32_t pixel_at (int x, int y) const
 
void set_pixel_at (int x, int y, uint32_t color)
 
 Image ()=default
 
 Image (const Image &image)=default
 
Imageoperator= (const Image &other)=default
 
bool has_image () const
 
int w () const
 
int h () const
 
pdfium::span< const uint8_t > span () const
 
bool CreateFromFilename (const std::string &path)
 
bool CreateFromFilenameWithReverseByteOrder (const std::string &path)
 
void Clear ()
 
uint32_t pixel_at (int x, int y) const
 
void set_pixel_at (int x, int y, uint32_t color)
 

Detailed Description

Definition at line 39 of file image_diff.cpp.

Constructor & Destructor Documentation

◆ Image() [1/4]

Image::Image ( )
default

◆ Image() [2/4]

Image::Image ( const Image & image)
default

Referenced by CreateImageDiff(), and SubtractImages().

+ Here is the caller graph for this function:

◆ Image() [3/4]

Image::Image ( )
default

◆ Image() [4/4]

Image::Image ( const Image & image)
default

Member Function Documentation

◆ Clear() [1/2]

void Image::Clear ( )
inline

Definition at line 61 of file image_diff.cpp.

◆ Clear() [2/2]

void Image::Clear ( )
inline

Definition at line 61 of file image_diff.cpp.

◆ CreateFromFilename() [1/2]

bool Image::CreateFromFilename ( const std::string & path)
inline

Definition at line 52 of file image_diff.cpp.

Referenced by CompareImages(), and DiffImages().

+ Here is the caller graph for this function:

◆ CreateFromFilename() [2/2]

bool Image::CreateFromFilename ( const std::string & path)
inline

Definition at line 52 of file image_diff.cpp.

◆ CreateFromFilenameWithReverseByteOrder() [1/2]

bool Image::CreateFromFilenameWithReverseByteOrder ( const std::string & path)
inline

Definition at line 57 of file image_diff.cpp.

Referenced by CompareImages(), and DiffImages().

+ Here is the caller graph for this function:

◆ CreateFromFilenameWithReverseByteOrder() [2/2]

bool Image::CreateFromFilenameWithReverseByteOrder ( const std::string & path)
inline

Definition at line 57 of file image_diff.cpp.

◆ h() [1/2]

int Image::h ( ) const
inline

Definition at line 47 of file image_diff.cpp.

Referenced by CalculateDifferencePercentage(), CountImageSizeMismatchAsPixelDifference(), CreateImageDiff(), HistogramPercentageDifferent(), PercentageDifferent(), and SubtractImages().

+ Here is the caller graph for this function:

◆ h() [2/2]

int Image::h ( ) const
inline

Definition at line 47 of file image_diff.cpp.

◆ has_image() [1/2]

bool Image::has_image ( ) const
inline

Definition at line 45 of file image_diff.cpp.

◆ has_image() [2/2]

bool Image::has_image ( ) const
inline

Definition at line 45 of file image_diff.cpp.

◆ operator=() [1/2]

Image & Image::operator= ( const Image & other)
default

Referenced by CreateImageDiff().

+ Here is the caller graph for this function:

◆ operator=() [2/2]

Image & Image::operator= ( const Image & other)
default

◆ pixel_at() [1/2]

uint32_t Image::pixel_at ( int x,
int y ) const
inline

Definition at line 67 of file image_diff.cpp.

Referenced by CreateImageDiff(), HistogramPercentageDifferent(), PercentageDifferent(), and SubtractImages().

+ Here is the caller graph for this function:

◆ pixel_at() [2/2]

uint32_t Image::pixel_at ( int x,
int y ) const
inline

Definition at line 67 of file image_diff.cpp.

◆ set_pixel_at() [1/2]

void Image::set_pixel_at ( int x,
int y,
uint32_t color )
inline

Definition at line 73 of file image_diff.cpp.

Referenced by CreateImageDiff(), and SubtractImages().

+ Here is the caller graph for this function:

◆ set_pixel_at() [2/2]

void Image::set_pixel_at ( int x,
int y,
uint32_t color )
inline

Definition at line 73 of file image_diff.cpp.

◆ span() [1/2]

pdfium::span< const uint8_t > Image::span ( ) const
inline

Definition at line 48 of file image_diff.cpp.

◆ span() [2/2]

pdfium::span< const uint8_t > Image::span ( ) const
inline

Definition at line 48 of file image_diff.cpp.

◆ w() [1/2]

int Image::w ( ) const
inline

Definition at line 46 of file image_diff.cpp.

Referenced by CalculateDifferencePercentage(), CountImageSizeMismatchAsPixelDifference(), CreateImageDiff(), HistogramPercentageDifferent(), PercentageDifferent(), and SubtractImages().

+ Here is the caller graph for this function:

◆ w() [2/2]

int Image::w ( ) const
inline

Definition at line 46 of file image_diff.cpp.


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