|
| bool | MakeImage (std::string_view name, const ScreenshotCallback &callb, uint w, uint h, int pixelformat, const Colour *palette) const override |
| | Create and write an image to a file.
|
| | ScreenshotProvider (std::string_view name, std::string_view description, int priority) |
| constexpr | PriorityBaseProvider (std::string_view name, std::string_view description, int priority) |
| int | GetPriority () const |
| constexpr | BaseProvider (std::string_view name, std::string_view description) |
| std::string_view | GetName () const |
| std::string_view | GetDescription () const |
Definition at line 40 of file screenshot_pcx.cpp.
◆ ScreenshotProvider_Pcx()
| ScreenshotProvider_Pcx::ScreenshotProvider_Pcx |
( |
| ) |
|
|
inline |
◆ MakeImage()
| bool ScreenshotProvider_Pcx::MakeImage |
( |
std::string_view | name, |
|
|
const ScreenshotCallback & | callb, |
|
|
uint | w, |
|
|
uint | h, |
|
|
int | pixelformat, |
|
|
const Colour * | palette ) const |
|
inlineoverridevirtual |
Create and write an image to a file.
- Parameters
-
| name | The file name to write to. |
| callb | The callback that fills a buffer with pixel data. |
| w | The width of the image. |
| h | The height of the image. |
| pixelformat | The number of bits per pixel for the image. |
| palette | The palette that is currently being used. |
- Returns
- Whether writing the image was successful of not.
Implements ScreenshotProvider.
Definition at line 44 of file screenshot_pcx.cpp.
References Clamp(), Debug, and FileHandle::Open().
◆ instance
The documentation for this class was generated from the following file: