Unit 'agraphics' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#amunits]

SPRITEA_XReplication

Tag for AllocSpriteDataA() Controls the horizontal pixel replication factor used when converting the bitmap data. Default - 0

Declaration

Source position: agraphics.pas line 2026

const SPRITEA_XReplication = $81000002;

Description

Controls the horizontal pixel replication factor used when converting the bitmap data. Valid values are:

0
perform a 1 to 1 conversion
1
each pixel from the source is replicated twice in the output.
2
each pixel is replicated 4 times.
-1
skip every other pixel in the source bitmap
-2
only include every fourth pixel from the source.

This tag is useful for converting data from one resolution to another. For instance, hi-res bitmap data can be correctly converted for a lo-res sprite by using an x replication factor of -1. Defaults to 0.


Documentation generated on: 2021-07-30