DQBcopyTransLayer
SUB

Prototype

DECLARE SUB DQBcopyTransLayer (BYVAL SourceLayer, BYVAL DestLayer)

Parameters

SourceLayer - Source layer to copy data from

DestLayer - Destination layer where to copy data

Returns

none

Description

This function is similar to DQBcopyLayer, but the pixels with color 0 of the source layer are skipped and not copied onto the destination layer; this allows transparent layer copy. With some practice, it is possible to obtain a parallax scrolling effect using this function with DQBscroll.

Notes:

Needless to say, DQBcopyTransLayer is slower than DQBcopyLayer, be warned.

Example

See DQBcopyLayer example