TIvorySurface::BackgroundBitmap

Holds a pointer to the background bitmap.

__property TIvoryBitmap* BackgroundBitmap;

Description

Use BackgroundBitmap to assign a background bitmap to the surface. The new background doesn't take effect automatically; you must call Paint to repaint the surface with the new background. BackgroundBitmap is a pointer to a TIvoryBitmap component, and it only has effect if DrawBackground is set to true. Otherwise, BackgroundBitmap is not used. The default value for BackgroundBitmap is NULL.

Notes

If DrawBackground is set to true, the BackgroundBitmap is going to be drawn on the surface. If TileBackground is false, the background bitmap will be stretched so that it fills the whole surface. If TileBackground is true, the background bitmap will be tiled on the surface like a wallpaper.

Back to TIvorySurface