|
|
|
@ -61,7 +61,7 @@ bool AbstractImageConverter::exportToFile(const Image2D* const image, const std: |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
bool AbstractImageConverter::doExportToFile(const Image2D* const image, const std::string& filename) const { |
|
|
|
bool AbstractImageConverter::doExportToFile(const Image2D* const image, const std::string& filename) const { |
|
|
|
CORRADE_ASSERT(features() & Feature::ConvertData, "Trade::AbstractImageConverter::exportToFile(): not implemented", nullptr); |
|
|
|
CORRADE_ASSERT(features() & Feature::ConvertData, "Trade::AbstractImageConverter::exportToFile(): not implemented", false); |
|
|
|
|
|
|
|
|
|
|
|
auto data = doExportToData(image); |
|
|
|
auto data = doExportToData(image); |
|
|
|
if(!data) return false; |
|
|
|
if(!data) return false; |
|
|
|
|