I hava a BufferedImage from a GIF, the ColorModel is a IndexColorModel .
Since i finally want to write back the modified image to a GIF , i don't
want to change the color model, especially my application need to absolutely
keep the palette as it is used in the original GIF.
Then i did create a
Seems like the most straightforward way to do this
would be to use the drawImage() variant that takes
source and dest rectangles, that is:
public boolean drawImage(Image, dx1, dy1, dx2, dy2, sx1, sy1, sx2,
sy2,
ImageObserver)
Using this method, you can specify the source rect as the
Hello,
While testing the new OpenGL rendering pipeline of J2SE 5.0, I noticed
what seems to be a bug, but I'd like to check with people here before
filing a report in the database.
I have a simple JFrame with a JPanel inside (see code below). I've
defined a simple paint(Graphics g) method for this
My problem: if I use a color that is not contained in the palette, or if I
call drawString() with font antialiasing , which will produce pixels with
a color not contained in the palette. How is are these new colors mapped
to the palette color?
There is no specification to define how this mapping
Anybody know of a library that enables you to read AutoCAD SHX fonts in Java2D?
I'm guessing that my only solution is to have somebody convert the SHX fonts to True
Type and then use the TTF in Java, but I was wondering if anybody's heard of some type
of reader in Java2D.
Thanks
Augusto