 |
Flutter Impeller
|
|
Go to the documentation of this file.
5 #ifndef FLUTTER_IMPELLER_GOLDEN_TESTS_SCREENSHOT_H_
6 #define FLUTTER_IMPELLER_GOLDEN_TESTS_SCREENSHOT_H_
21 virtual const uint8_t*
GetBytes()
const = 0;
34 virtual bool WriteToPNG(
const std::string& path)
const = 0;
40 #endif // FLUTTER_IMPELLER_GOLDEN_TESTS_SCREENSHOT_H_
virtual size_t GetWidth() const =0
Returns the width of the image in pixels.
virtual ~Screenshot()=default
virtual size_t GetBytesPerRow() const =0
Returns number of bytes required to represent one row of the raw image.
virtual const uint8_t * GetBytes() const =0
Access raw data of the screenshot.
virtual bool WriteToPNG(const std::string &path) const =0
virtual size_t GetHeight() const =0
Returns the height of the image in pixels.