aspose file tools*
The moose likes Beginning Java and the fly likes graphic in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "graphic in java" Watch "graphic in java" New topic
Author

graphic in java

rose dando
Greenhorn

Joined: Sep 26, 2012
Posts: 5
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

Joined: May 26, 2003
Posts: 30758
    
156

Welcome to CodeRanch!

What do you mean by "without using its classes"? Are there certain libraries you aren't allowed to use?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Sabarish Venkat
Ranch Hand

Joined: Jan 18, 2012
Posts: 136

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

Joined: Oct 13, 2005
Posts: 39408
    
  28
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
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: 42277
    
  64
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.


Ping & DNS - my free Android networking tools app
Jeff Verdegan
Bartender

Joined: Jan 03, 2004
Posts: 6109
    
    6

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
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: 39408
    
  28
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
 
subject: graphic in java