Add readPixel param to getImage()

This commit is contained in:
2023-02-09 21:27:59 +01:00
parent 02e3aba6a7
commit 3141092456
3 changed files with 10 additions and 6 deletions
+5 -1
View File
@@ -227,7 +227,11 @@ public:
void close();
/** Return number of images inside file */
int imagesCount() const;
const Image& getImage(uint32_t n);
/** Return reference to Image
* @param n index of image
* @param readPixel when false it will read pixel data from file and imageData()
* will return nullptr */
const Image& getImage(uint32_t n, bool readPixels = true);
private:
void readXISFHeader();
void readSignature();