Control.setBackgroundImage

Sets the receiver's background image to the image specified by the argument, or to the default system color for the control if the argument is null. The background image is tiled to fill the available space. <p> Note: This operation is a hint and may be overridden by the platform. For example, on Windows the background of a Button cannot be changed. </p> @param image the new image (or null)

@exception IllegalArgumentException <ul> <li>ERROR_INVALID_ARGUMENT - if the argument has been disposed</li> <li>ERROR_INVALID_ARGUMENT - if the argument is not a bitmap</li> </ul> @exception SWTException <ul> <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> </ul>

@since 3.2

class Control
void
setBackgroundImage

Meta