{
ImageData data = ((ImageSkin) Window.this.getSkin(IContainer.BORDER_NW))
.getImage().getImageData();
Region opaqueRegion = ImageRegion.calculateOpaquePath(data, data.transparentPixel);
region.subtract(opaqueRegion);
opaqueRegion.dispose();
data = ((ImageSkin) Window.this.getSkin(IContainer.BORDER_NE)).getImage()
.getImageData();
opaqueRegion = ImageRegion.calculateOpaquePath(data, data.transparentPixel,
rect.width - data.width, 0);