This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

graphic in java

 
rose dando
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33694
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to CodeRanch!

What do you mean by "without using its classes"? Are there certain libraries you aren't allowed to use?
 
Sabarish Venkat
Ranch Hand
Posts: 136
Java MySQL Database Netbeans IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In such case you wanna write your own classes for those graphics as you wish and call the RGB values as per your requirement might this link will help you How to’s – Creating RGB color generator using Java
 
Campbell Ritchie
Sheriff
Pie
Posts: 47258
52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That link doesn’t help, I am afraid, because there is no public access to the code.
 
rose dando
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Jeff Verdegan
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 47258
52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you need to go back and ask what it means about not using pre‑existing classes. You may have misunderstood that bit.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic