Image.this

Constructs an instance of this class, whose type is <code>SWT.ICON</code>, from the two given <code>ImageData</code> objects. The two images must be the same size. Pixel transparency in either image will be ignored. <p> The mask image should contain white wherever the icon is to be visible, and black wherever the icon is to be transparent. In addition, the source image should contain black wherever the icon is to be transparent. </p>

@param device the device on which to create the icon @param source the color data for the icon @param mask the mask data for the icon

@exception IllegalArgumentException <ul> <li>ERROR_NULL_ARGUMENT - if device is null and there is no current device</li> <li>ERROR_NULL_ARGUMENT - if either the source or mask is null </li> <li>ERROR_INVALID_ARGUMENT - if source and mask are different sizes</li> </ul> @exception SWTError <ul> <li>ERROR_NO_HANDLES if a handle could not be obtained for image creation</li> </ul>

Meta