20#ifndef POPPLER_IMAGE_H
21#define POPPLER_IMAGE_H
44 image(
int iwidth,
int iheight, format_enum iformat);
45 image(
char *idata,
int iwidth,
int iheight, format_enum iformat);
49 bool is_valid()
const;
50 format_enum format()
const;
54 const char *const_data()
const;
55 int bytes_per_row()
const;
59 bool save(
const std::string &file_name,
const std::string &out_format,
int dpi = -1)
const;
61 static std::vector<std::string> supported_image_formats();
69 friend class image_private;
A simple representation of image, with direct access to the data.
Definition poppler-image.h:31
format_enum
The possible formats for an image.
Definition poppler-image.h:34
A rectangle.
Definition poppler-rectangle.h:28
Single namespace containing all the classes and functions of poppler-cpp.
Definition poppler-destination.h:27