Skip to content

Thumbnail ​

cpp
#include <Media/Snapshot.h>
cpp
struct Thumbnail

Defined in Media/Snapshot.h:24

Preview image of a snapshot.

Public Attributes ​

ReturnNameDescription
i32widthImage size.
u32screenRaw texture data.
time_ttimestampCreation date and time.

width ​

cpp
i32 width

Defined in Media/Snapshot.h:27

Image size.


screen ​

cpp
u32 screen[Tex::height *Tex::width]

Defined in Media/Snapshot.h:30

Raw texture data.


timestamp ​

cpp
time_t timestamp

Defined in Media/Snapshot.h:33

Creation date and time.

Public Methods ​

ReturnNameDescription
voidtakeTakes a screenshot from the current texture.

take ​

cpp
void take(const C64 & c64, isize dx = 1, isize dy = 1)

Defined in Media/Snapshot.h:39

Takes a screenshot from the current texture.

Public Static Methods ​

ReturnNameDescription
Thumbnail *makeWithC64 staticFactory methods.

makeWithC64 ​

static

cpp
static Thumbnail * makeWithC64(const C64 & c64, isize dx = 1, isize dy = 1)

Defined in Media/Snapshot.h:36

Factory methods.