Community
Participate
Working Groups
The constructor to create an empty image of a given size is missing in RWT. Typically, this constructor is used to create images that are drawn upon by creating a GC: Image image = new Image( device, width, height ); GC gc = new GC( image ); gc.drawRectangle( 0, 0, 50, 50 ); ...
Created attachment 186904 [details] Image(device,width,height) constructor and test cases Calling the constructor creates an image of the given width and height with all pixels set to white.
Even though this constructor is useless without GC support for Images, I think there's no reason to hold back a correct implementation. Applied patch to CVS HEAD.