Skip to main content

Module previews

Module previews 

Source
Expand description

Frame previews for scrubbing: Request::GetPreviews and its reply.

An item’s previews are pictures of it at even intervals, packed row by row into sheets of columns × rows tiles. A sheet is an image like any other: read it on the artwork stream by its ArtworkId, at crate::ArtworkSize::Original, once for the item, and draw the part of it that Previews::tile names. A smaller size scales the whole sheet: scale the tile’s rectangle by the image’s width over columns × tile_width.

Structs§

PreviewTile
Where the picture for a time is.
Previews
An item’s previews: what GetPreviews answers once they are made.