Article View: borland.public.jbuilder.java.language
Article #18923how do i draw into an image that has a reduced pallete??? (like indxcolormodel)
From: Karen Rumments
Date: Tue, 07 Apr 1998 00:00
Date: Tue, 07 Apr 1998 00:00
25 lines
1634 bytes
1634 bytes
Hi all and thanks in advance, I am writing an application that has alot of graphic processing. I need to reduce the number of colors i am working with to preserve memory.... in my program i create an image by using createImage(int,int), and then do a getGraphics to allow me to draw into this object. So in order to reduce the memory load i tried to creatimage using a memoryimagesource and defining a new colormodel. now get graphics will not work... it will only work with images created using the (int,int) form of createimage. Is there anyway that i can create a image i can drawinto that has a reduced palette? 24 bit color is nice but makes it impossible to graphically lay out a 600 dpi 8x10 size graphic for printing, using an indexed color model it is just over 23 meg... forget about it with rgba nd alpha channel.... Any suggestions? right now what i am thinking about is go directly to the index color model and work it out as numbers in a byte array... using a creatimage with a mem img srce to actually view it. Thanks again!!! K
Technical Details
Message-ID:
<352A388C.F39B3723@netvalueinc.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,e4037f2aafbda449,start X-Google-Attributes: gidf74b3,public From: Karen Rumments <krumments@netvalueinc.com> Subject: how do i draw into an image that has a reduced pallete??? (like indxcolormodel) Date: 1998/04/07 Message-ID: <352A388C.F39B3723@netvalueinc.com> X-Deja-AN: 341711226 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language