Hi all :
we need to do some graphic projects using java , without using its classes .. the main topic about how to store color in memory by taking RGB values
so we should writes a java code to store color values and then draw it in screen ..
can any one help me ?
That link doesn’t help, I am afraid, because there is no public access to the code.
rose dando
Greenhorn
Joined: Sep 26, 2012
Posts: 5
posted
0
without using color class to set RGB values . we should build class to take these value and store it in computer memory . the basic about how colors are creation , then to show it and put color pixel in screen ..
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35252
7
posted
0
rose dando wrote:without using color class to set RGB values
That seems like an arbitrary restriction. It's also unworkable, as that class (and the Paint interface) is how RGB values are passed to most of AWT's and Swing's drawing routines. There's also little point in trying to avoid using it, as it would be used under the hood (within the AWT/Swing code) anyway. Can you tell us why it should be avoided? This seems like an implementation decision that should be up to the developer.
rose dando wrote:without using color class to set RGB values . we should build class to take these value and store it in computer memory . the basic about how colors are creation , then to show it and put color pixel in screen ..
You mean write directly to graphics memory? Not possible in Java.
rose dando
Greenhorn
Joined: Sep 26, 2012
Posts: 5
posted
0
This my first task in my graphic course .. i don 't know .. i am also see it impossible .. but that it > thanks all
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32708
4
posted
0
I think you need to go back and ask what it means about not using pre‑existing classes. You may have misunderstood that bit.