How do I create an in-memory fully transparent SWT image and draw a black line on it with antialias enabled?
I expect the result to include only black color and alph
This is how I did and it works:
Image src = new Image(null, 16, 16); ImageData imageData = src.getImageData(); imageData.transparentPixel = imageData.getPixel(0, 0); src.dispose(); Image icon = new Image(null, imageData); //draw on the icon with gc