Fixing issue #522 photo window is disturbed. The top semi-transparent area over the user photo is removed.

cusax-fix
Yana Stamcheva 17 years ago
parent ac8bf050ce
commit dddcd8cc37

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.9 KiB

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

@ -22,8 +22,6 @@
public class FramedImage
extends JComponent
{
private final Image shadowImage;
private final Image frameImage;
private Image image;
@ -50,9 +48,6 @@ public FramedImage(ImageIcon imageIcon, int width, int height)
this.frameImage =
ImageUtils.scaleImageWithinBounds(ImageLoader
.getImage(ImageLoader.USER_PHOTO_FRAME), width, height);
this.shadowImage =
ImageUtils.scaleImageWithinBounds(ImageLoader
.getImage(ImageLoader.USER_PHOTO_SHADOW), width, height);
if (imageIcon != null)
{
@ -82,8 +77,5 @@ public void paintComponent(Graphics g)
g.drawImage(frameImage, width / 2 - frameImage.getWidth(null) / 2,
height / 2 - frameImage.getHeight(null) / 2, null);
g.drawImage(shadowImage, width / 2 - shadowImage.getWidth(null) / 2, 1,
null);
}
}

Loading…
Cancel
Save