}
protected void paintToImage(Component c, Image image, Graphics g,
int w, int h, Object[] args) {
Skin skin = (Skin)args[0];
Part part = skin.part;
State state = (State)args[1];
if (state == null) {
state = skin.state;
}
if (c == null) {
c = skin.component;
}
WritableRaster raster = ((BufferedImage)image).getRaster();
DataBufferInt buffer = (DataBufferInt)raster.getDataBuffer();
ThemeReader.paintBackground(buffer.getData(),
part.getControlName(c), part.getValue(),
State.getValue(part, state),
0, 0, w, h, w);
}