21#ifndef POPPLER_IMAGE_H
22#define POPPLER_IMAGE_H
45 image(
int iwidth,
int iheight, format_enum iformat);
46 image(
char *idata,
int iwidth,
int iheight, format_enum iformat);
50 bool is_valid()
const;
51 format_enum format()
const;
55 const char *const_data()
const;
56 int bytes_per_row()
const;
60 bool save(
const std::string &file_name,
const std::string &out_format,
int dpi = -1)
const;
62 static std::vector<std::string> supported_image_formats();
70 friend class image_private;
A simple representation of image, with direct access to the data.
Definition poppler-image.h:32
format_enum
The possible formats for an image.
Definition poppler-image.h:35
Single namespace containing all the classes and functions of poppler-cpp.
Definition poppler-destination.h:27