TIvorySurface::CopySurface

Copies a given surfaces onto the current surface.

Form 1:

void __fastcall CopySurface(int origx, int origy, TIvorySurface* surface);

Form 2:

void __fastcall CopySurface(int origx, int origy, TIvorySurface* surface, const TRect rect);

Description

Use Form 1 to copy the full content of the given surface onto the current surface. Use Form 2 to copy a portion of the given surface onto the current surface. origx and origy specify the position on the current surface where the upper left corner of the given surface will be copied. origx is the horizontal, and origy is the vertical coordinate. surface is a pointer to the source surface. rect specifies the rectangle bounding the portion of the source surface that will be copied. This parameter can be omitted; in this case, the full surface will be copied.

CopySurface can not be used from within the OnPaint event. CopySurface is by far the fastest way of drawing on a surface.

Back to TIvorySurface