ImageFilter

Manages the import/export of data from/to an image file.

Public Types

  • enum ImportFormat

Public Methods

void

ImageFilter()

int

endColumn() const

int

endRow() const

QString

fileInfoString(const QString &)

ImageFilter::ImportFormat

importFormat() const

QStringList

importFormats()

bool

load(XmlStreamReader *) override

void

readDataFromFile(const QString &fileName, AbstractDataSource *=nullptr, ImportMode=ImportMode::Replace) override

void

save(QXmlStreamWriter *) const override

void

setEndColumn(const int)

void

setEndRow(const int)

void

setImportFormat(const ImageFilter::ImportFormat)

void

setStartColumn(const int)

void

setStartRow(const int)

int

startColumn() const

int

startRow() const

void

write(const QString &fileName, AbstractDataSource *) override

Detailed Description

class ImageFilter : public AbstractFileFilter

Manages the import/export of data from/to an image file.

Public Functions

virtual void readDataFromFile(const QString &fileName, AbstractDataSource* = nullptr, ImportMode = ImportMode::Replace) override

reads the content of the file fileName to the data source dataSource.

virtual void write(const QString &fileName, AbstractDataSource*) override

writes the content of the data source dataSource to the file fileName.

virtual void save(QXmlStreamWriter*) const override

Saves as XML.

virtual bool load(XmlStreamReader*) override

Loads from XML.

Public Static Functions

static QStringList importFormats()

returns the list of all predefined import formats.