public Image getGradient(Color color1, Color color2, int realtheight, int theight, int marginHeight, Display display) { if (color1 == null || color1.isDisposed() || color2 == null || color2.isDisposed()) return null; AbstractImageDescriptor desc = new SimpleImageDescriptor(color1, color2, realtheight, theight, marginHeight); return getGradient(desc, display); }
public Image getGradient(Color color1, Color color2, int realtheight, int theight, int marginHeight, Display display) { if (color1 == null || color1.isDisposed() || color2 == null || color2.isDisposed()) return null; AbstractImageDescriptor desc = new SimpleImageDescriptor(color1, color2, realtheight, theight, marginHeight); return getGradient(desc, display); }