Add transparency support [fix-30013]

This commit is contained in:
Alexander Lobas
2013-03-20 13:42:59 +04:00
parent c19042d7e5
commit 18a581b485
@@ -15,7 +15,6 @@
*/
package com.intellij.android.designer.designSurface;
import javax.swing.*;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.util.ArrayList;
@@ -26,11 +25,20 @@ import java.util.List;
*/
public class RootView extends com.intellij.designer.designSurface.RootView {
private List<EmptyRegion> myEmptyRegions;
private boolean myAlphaChannelImage;
public RootView(int x, int y, BufferedImage image) {
super(x, y, image);
}
public boolean isAlphaChannelImage() {
return myAlphaChannelImage;
}
public void setAlphaChannelImage(boolean alphaChannelImage) {
myAlphaChannelImage = alphaChannelImage;
}
@Override
public void setImage(BufferedImage image, int x, int y, int width, int height) {
super.setImage(image, x, y, width, height);