Re: Web safe colours only?
- From: "Andrew Thompson" <andrewthommo@xxxxxxxxx>
- Date: 28 Sep 2006 06:27:30 -0700
Kev wrote:
.....
I have written an application to produce images
from text read out of a database.
Why? Why not keep the machine readable, (searchable,
spell-checkable) text as ..text?
However the background colour I wish to use is
0xD8F1FF, when the image is produced the colour
doesnt match the backgound the image is placed on
Huh? What 'background'?*
(which is also 0xD8F1FF)
What color (of the 16,277,215 remaining in a 24 bit
color) is it?
I have render quality etc set on quality
and my JPEGEncodeParam setQuality param set to 1.0
JPEG's are good for landscapes and sunsets - but horrid
for plans, drawings and other such images of documents
and schematics - GIF is good for them (especially limited
palette), but for writing from within the core API, you
might try PNG - it will often result in both smaller file
size and better quality than JPEG, for such tasks.
I have tried using the ImageIO api to the same result,
is there any limitation on Java when producing images
to use websafe colours only?
No.
* Maybe if you let the code do the talking (in a 20 line
example of exactly what your doing - of course - for this
example, you will need to replace the DB with some
hard-coded text) we can see what you mean.
Andrew T.
.
- Follow-Ups:
- Re: Web safe colours only?
- From: Deniz Dogan
- Re: Web safe colours only?
- References:
- Web safe colours only?
- From: Kev
- Web safe colours only?
- Prev by Date: Re: Can JOptionPane use a MaskFormatter for data input
- Next by Date: Re: Web safe colours only?
- Previous by thread: Web safe colours only?
- Next by thread: Re: Web safe colours only?
- Index(es):