import java.awt.Color;
import java.awt.Graphics;
-import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
/**
if (g != null)
{
+ if (Platform.isJS())
+ {
+ /*
+ * for JavaScript the pixel itself
+ * is a resource that needs to be recreated in getRGB(0,0)
+ */
+ offscreenImage.flush();
+ }
c = new Color(offscreenImage.getRGB(0, 0));
}
+
return c;
}