DVBBufferedImage and Graphics2D
I've got the following code that I think should work, but is giving a ClassCastException:
Object o = ((DVBBufferedImage)buffer).createGraphics();
return (Graphics2D) o;
DVBBufferedImage.createGraphics() should return a DVBGraphics object. And in the DVBGraphics JavaDoc it states:
In implementations where the class java.awt.Graphics2D is visible to MHP applications, org.dvb.ui.DVBGraphics inherits from java.awt.Graphics2D. Otherwise, org.dvb.ui.DVBGraphics inherits from java.awt.Graphics.
I thought the OCAP-RI has support for Graphics2D? This file seems to hint that Graphics2D is supported:
Thanks in advance,