Flutter Engine
The Flutter Engine
|
#include <screenshot.h>
Public Member Functions | |
virtual | ~Screenshot ()=default |
virtual const uint8_t * | GetBytes () const =0 |
Access raw data of the screenshot. More... | |
virtual size_t | GetHeight () const =0 |
Returns the height of the image in pixels. More... | |
virtual size_t | GetWidth () const =0 |
Returns the width of the image in pixels. More... | |
virtual size_t | GetBytesPerRow () const =0 |
Returns number of bytes required to represent one row of the raw image. More... | |
virtual bool | WriteToPNG (const std::string &path) const =0 |
Definition at line 16 of file screenshot.h.
|
virtualdefault |
|
pure virtual |
Access raw data of the screenshot.
Implemented in impeller::testing::MetalScreenshot.
|
pure virtual |
Returns number of bytes required to represent one row of the raw image.
Implemented in impeller::testing::MetalScreenshot.
|
pure virtual |
Returns the height of the image in pixels.
Implemented in impeller::testing::MetalScreenshot.
|
pure virtual |
Returns the width of the image in pixels.
Implemented in impeller::testing::MetalScreenshot.
|
pure virtual |
Synchronously write the screenshot to disk as a PNG at path
. Returns true
if it succeeded.
Implemented in impeller::testing::MetalScreenshot.