The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



CopyFrom


Unit: SDL_sdlcolors
Class: TColorArray
Declaration: procedure CopyFrom (ColArraySource: TColorArray; SourceElemLo, SourceElemHi, DestElem: integer);

The method CopyFrom copies a part of the color array ColArraySource to self. The range of elements which are to be copied is specified by the parameters SourceElemLo and SourceElemHi. The destination area is determined by the parameter DestElem. The source color element addressed by SourceElemLo is copied to the destination element addressed by DestElem. All other elements (up to source color address SourceElemHi) are copied to the destination array at increasing addresses. The copying process stops at the boundaries of the destination array.

Hint: SourceElemLo need not be smaller than SourceElemHi, since the method CopyFrom automatically corrects exchanged boundaries.


Last Update: 2012-Oct-20