[1541] in java-interest

home help back first fref pref prev next nref lref last post

DIBitmaps and RGB

daemon@ATHENA.MIT.EDU (Christian Koechling c/o ROBERT BO)
Thu Sep 7 08:15:38 1995

Date: Thu, 7 Sep 95 11:07:17 WET DST
From: Christian Koechling  c/o ROBERT BOSCH GmbH   FV/SLH <kl@hic334.decnet.bosch.de>
To: "java-interest@java.eng.sun.com"@si4640.si.bosch.de
Apparently-To: java-interest@java.eng.Sun.COM


Hi folks!

I'm on the way to get familiar with the java-language.
Since yesterday I want to write an application which shows
RGB-pictures in a window on screen.
This programm will be part of an simulation written in C 
hence contents of the pictures will be delivered in arrays by
the C-routines.

by using the following lines showing gif's from a file
was possible.

	GifImage gif = new GifImage("test.gif");
	graph = new Graphics(win);
	img = win.createImage(gif);
	graph.drawImage(img,0,0);

presumable I have to use 'DIBitmap' 

In case I've got 3 arrays each has a size of 200 by 200 describing
the red, the green and the blue contents of the RGB-picture (depth 8bit)

how does this DIBitmap(int,int,int colors,byte[],byte[],byte[],byte[]) work
for my problem.
What does the raster array do?


my 'sun' will rise will rise again for any help given for this!

thanks 

Christian

<koechling@c334.decnet.bosch.de>

-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post