|
|
@ -251,7 +251,7 @@ public class CreateComponentAction extends UpdateAction { |
|
|
|
|
|
|
|
|
|
|
|
private Image componentToImage(Component comp, Rectangle rect) { |
|
|
|
private Image componentToImage(Component comp, Rectangle rect) { |
|
|
|
|
|
|
|
|
|
|
|
BufferedImage im = new BufferedImage((int) rect.getWidth(), (int) rect.getHeight(), BufferedImage.TYPE_INT_ARGB); |
|
|
|
BufferedImage im = new BufferedImage((int) rect.getWidth(), (int) rect.getHeight(), BufferedImage.TYPE_INT_RGB); |
|
|
|
comp.paint(im.getGraphics()); |
|
|
|
comp.paint(im.getGraphics()); |
|
|
|
return im; |
|
|
|
return im; |
|
|
|
} |
|
|
|
} |
|
|
@ -260,7 +260,7 @@ public class CreateComponentAction extends UpdateAction { |
|
|
|
private Image moduleToImage(Form form, ElementCaseEditor editor, Map<String, Object> parameterMap, Rectangle rect) { |
|
|
|
private Image moduleToImage(Form form, ElementCaseEditor editor, Map<String, Object> parameterMap, Rectangle rect) { |
|
|
|
|
|
|
|
|
|
|
|
if (editor == null) { |
|
|
|
if (editor == null) { |
|
|
|
return new BufferedImage((int) rect.getWidth(), (int) rect.getHeight(), BufferedImage.TYPE_INT_ARGB); |
|
|
|
return new BufferedImage((int) rect.getWidth(), (int) rect.getHeight(), BufferedImage.TYPE_INT_RGB); |
|
|
|
} |
|
|
|
} |
|
|
|
FormElementCaseProvider provider = editor.getElementCase(); |
|
|
|
FormElementCaseProvider provider = editor.getElementCase(); |
|
|
|
provider.setName(editor.getWidgetName()); |
|
|
|
provider.setName(editor.getWidgetName()); |
|
|
|