Java Overloading Functions: Java, Color Modes & Choices

  • Thread starter Thread starter NorrisP
  • Start date Start date
  • Tags Tags
    Functions
AI Thread Summary
Function and operator overloading in Java is not inherently problematic and can be effectively utilized without creating a clumsy appearance in code. The choice of color depth, whether 16, 32, 64, 128, or 256 colors, should be based on the specific needs of the application. If 256 colors suffice, then that is a suitable choice; however, for applications requiring a broader spectrum, such as a million colors, a library that supports higher color depths is necessary. The Java 2D library supports 32-bit color, which includes 8 bits for each RGB component. For applications needing CYMK color support, additional resources or libraries may be required. Relevant links to Java 2D resources and tutorials were provided for further exploration.
NorrisP
Messages
9
Reaction score
0
Will overloading in Java create clumpsy look,use ?

Also, in ordor to draw with color, will you chose to create 16, 32,64,128,256 color modes ? which one you often chose ?
Thanks you very much
 
Technology news on Phys.org
1) There is nothing wrong with function/operator overloading.

2) Pick the number of colors you want to use. If you need 256 colors, then go with that, if not pick less. It is completely dependent on your application.
 
thank you dduardo, but if 256, 256 mean I must create 256 array of color ?
but what if it bigger than 256 like a million of color.?
I need create many color, i see my computer have million color, i need distingush each of them.
 
If the library your using only has support for 8bits = = 2^8 = 256 colors and you need something like 16bit, 24bit or 32bit colors than you need to find a library that handles that amount. Unless your drawing pictures, 256 colors is probably more than enough. The java 2d library supports 32bit colors. 8bits for red 8 bits for green and 8 bits for blue = 32bit RGB.

If you want CYMK, that's a whole other story.
 
please can you suggest me library ?
 
thank you a lot
 
Back
Top