Pattern.this

Constructs a new Pattern given an image. Drawing with the resulting pattern will cause the image to be tiled over the resulting area. <p> This operation requires the operating system's advanced graphics subsystem which may not be available on some platforms. </p>

@param device the device on which to allocate the pattern @param image the image that the pattern will draw

@exception IllegalArgumentException <ul> <li>ERROR_NULL_ARGUMENT - if the device is null and there is no current device, or the image is null</li> <li>ERROR_INVALID_ARGUMENT - if the image has been disposed</li> </ul> @exception SWTException <ul> <li>ERROR_NO_GRAPHICS_LIBRARY - if advanced graphics are not available</li> </ul> @exception SWTError <ul> <li>ERROR_NO_HANDLES if a handle for the pattern could not be obtained</li> </ul>

@see #dispose()

Meta