TCustomPaintBox32.BufferOversize

property BufferOversize: Integer; // protected

Description

BufferOversize specifies how the back buffer is reallocated when the control is resized.

When BufferOversize equals 0, the back buffer is reallocated each time the control is resized to suite the new control dimensions.

When set to some positive value (40 by default), the back buffer is allowed to be up to BufferOversize pixels larger then the control is in each direction. The buffer resizing algorithm tracks size changes and reallocates the buffer only when its size becomes smaller than size of the buffered area or when the difference between the sizes exceeds the specified amount of pixels.

See Also

GetViewportRect, Buffer