Fix importing images in whiteboard sessions.

cusax-fix
Damian Minkov 18 years ago
parent bb0cfe42f8
commit a6727b8828

@ -971,7 +971,7 @@ public void actionPerformed(java.awt.event.ActionEvent evt)
}
});
// toolBar.add(imageButton);
toolBar.add(imageButton);
buttonGroup.add(polygonButton);
polygonButton.setToolTipText(Resources.getString("polygon"));

@ -78,9 +78,9 @@ public WhiteboardShapeImage ( String id,
this.whiteboardPoint = p;
this.width = width;
this.height = height;
ImageIcon ii = new ImageIcon (bytes);
this.bytes = Base64.decode(bytes);
ImageIcon ii = new ImageIcon (this.bytes);
this.image = ii.getImage ();
this.bytes = bytes;
this.recalculateSelectionPoints();
}
@ -302,9 +302,9 @@ public void setWhiteboardPoint (WhiteboardPoint whiteboardPoint)
* displayed as the object background.
*/
public void setBackgroundImage (byte[] background)
{
this.bytes = background;
ImageIcon ii = new ImageIcon (bytes);
{
this.bytes = Base64.decode(background);
ImageIcon ii = new ImageIcon (this.bytes);
this.image = ii.getImage ();
}

Loading…
Cancel
Save