Hi,

When we set an image to button, image is displaying partially.

We have 77x77 image, we would like to set image to button. (We are using eclipse SWT buttons)

We created button after that we are reading image and setting image to button by calling button.setImage(image)

Please see the code snippet.

Button button = new Button(shell, SWT.BUTTON1);

ImageData imageData = new ImageData(getClass().getResourceAsStream("/image1.png"));
Image image = new Image(display, imageData);
button.setImage(image);

Thanks,
Ramu