Image overlay probleme (SWT)
-
hallo
Ich möchte ein Image über ein Image legen. Das Overlay image wird allerdings nicht angezeigt. Woran liegt das??? Kennt sich da jemand aus???public class MappingImageDecorator extends CompositeImageDescriptor { private Image baseImage; private ImageDescriptor overlayImageDescriptor; private Point sizeOfImage; public MappingImageDecorator(Image baseImage, ImageDescriptor overlayImageDescriptor) { this.baseImage = baseImage; this.overlayImageDescriptor = overlayImageDescriptor; this.sizeOfImage = new Point(baseImage.getBounds().width, baseImage .getBounds().height); } protected void drawCompositeImage(int width, int height) { drawImage(baseImage.getImageData(), 0, 0); ImageData overlayImageData = overlayImageDescriptor.getImageData(); drawImage(overlayImageData, 0, 0); } protected Point getSize() { System.err.println("Width = " + baseImage.getBounds().width); System.err.println("Height = " + baseImage.getBounds().height); return sizeOfImage; } }