Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ColorModel in 1.1 vs. 1.2

15 views
Skip to first unread message

Myriam Abramson

unread,
Jan 19, 2000, 3:00:00 AM1/19/00
to

I'm trying to make a java module that used to work for 1.1 work under
1.2.

It seems that the ColorModel is different. One particular problem is
that double-buffering does not seem to work anymore:

java.lang.IllegalArgumentException: Raster ShortInterleavedRaster: width = 381 height = 381 #numDataElements 1 is incompatible with ColorModel DirectColorModel: rmask=7c00 gmask=3e0 bmask=1f amask=0
at java.awt.image.BufferedImage.<init>(BufferedImage.java:521)
at sun.awt.image.OffScreenImage.<init>(OffScreenImage.java:70)
at sun.awt.motif.MComponentPeer.createImage(MComponentPeer.java:310)
at java.awt.Component.createImage(Component.java:2101)

I've tried to remove double-buffering when I could but there got to be
a better way! How do you convert to 1.2 for this particular case?

TIA

--
myriam


Go Proverb:

The second line is the line of defeat, the third line is the line of
territory, and the fourth line is the line of influence.

0 new messages