KItinerary::PdfImage

Search for usage in LXR

KItinerary::PdfImage Class Reference

#include <pdfimage.h>

Public Types

enum  LoadingHint { NoHint = 0, AbortOnColorHint = 1, ConvertToGrayscaleHint = 2 }
 
typedef QFlags< LoadingHintLoadingHints
 

Properties

int height
 
int width
 

Public Member Functions

 PdfImage (const PdfImage &)
 
bool hasObjectId () const
 
int height () const
 
QImage image () const
 
int objectId () const
 
PdfImageoperator= (const PdfImage &)
 
void setLoadingHints (LoadingHints hints)
 
int sourceHeight () const
 
int sourceWidth () const
 
QTransform transform () const
 
int width () const
 

Detailed Description

An image in a PDF document.

Definition at line 23 of file pdfimage.h.

Member Enumeration Documentation

Hints for loading image data.

Enumerator
NoHint 

Load image data as-is. The default.

AbortOnColorHint 

Abort loading when encountering a non black/white pixel, as a shortcut for barcode detection.

ConvertToGrayscaleHint 

Convert to QImage::Format_Grayscale8 during loading. More efficient than converting later if all you need is grayscale.

Definition at line 50 of file pdfimage.h.

Member Function Documentation

bool PdfImage::hasObjectId ( ) const

Returns whether this image has an object id.

Vector graphic "images" don't have that.

Definition at line 217 of file pdfimage.cpp.

int KItinerary::PdfImage::height ( ) const

Height of the image in PDF 1/72 dpi coordinates.

QImage PdfImage::image ( ) const

The source image with display transformations applied.

Definition at line 204 of file pdfimage.cpp.

int PdfImage::objectId ( ) const

PDF-internal unique identifier of this image.

Use this to detect multiple occurrences of the same image in different places, if that reduces e.g. computation cost.

Definition at line 222 of file pdfimage.cpp.

void PdfImage::setLoadingHints ( LoadingHints  hints)

Sets image loading hints.

Definition at line 199 of file pdfimage.cpp.

int PdfImage::sourceHeight ( ) const

Height of the source image.

Definition at line 184 of file pdfimage.cpp.

int PdfImage::sourceWidth ( ) const

Width of the source image.

Definition at line 189 of file pdfimage.cpp.

QTransform PdfImage::transform ( ) const

Transformation from source image to final size/position on the page.

Values are 1/72 inch.

Definition at line 194 of file pdfimage.cpp.

int KItinerary::PdfImage::width ( ) const

Width of the image in PDF 1/72 dpi coordinates.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Nov 30 2021 23:06:14 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.