Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Doing graphics in Java  RSS feed

 
CH Lee
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

Can show me a few tutorials, articles, etc. on how to go graphics programming with Java? Preferrably something with sample code. I am trying to pick up some graphics manipulation with Java, hope you guys can help a newbie here.

Thanks.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try Sun and look for the AWT & Swing tutorials. They should get you going.
[ June 04, 2004: Message edited by: Paul Sturrock ]
 
CH Lee
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried that but no luck yet. Still doing it now.

Just in case I didn't paint the correct picture of what I wanted, here I go again. I basically want to do something like:
1. Join 2 pictures together.
2. Emboss another picture on another picture. Something like watermark or signature.

Please help.

PS: Does this fall under the beginners category? If not then I think the mod will deduct 10 post count from me.
 
Christopher Arthur
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To put on a water mark, you'll need first a file loader for the pictures, then when you have the pixel information stored in an RGB array, you just want to subtract a fraction of the watermark's RGB values to the main picture's RGB values, pixel by pixel. If you want to emboss an image by putting a little shadow around it, things get much more complicated.
 
CH Lee
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Christopher Arthur:
To put on a water mark, you'll need first a file loader for the pictures, then when you have the pixel information stored in an RGB array, you just want to subtract a fraction of the watermark's RGB values to the main picture's RGB values, pixel by pixel. If you want to emboss an image by putting a little shadow around it, things get much more complicated.



Hi Christopher,

Thanks for your information. I will try it out. Hopefully I can get it work.

If you don't mind, could you share with me on how to do the emboss thing? If you don't have the time, pls point me to a few place, i.e. website, articles, etc., that I could pick up more information.

Thanks.
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The 2D Graphics Trail of Sun's Java Tutorial may contain some information that you'll find useful.

I'm moving this to the Swing / JFC / AWT forum...
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'll want to also check out the Java Advanced Imaging API.
 
CH Lee
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

Thanks for all the information & URL. I will look into it, may take a lot lot time. Hopefully this thread won't be shut when I have something to post later.

Cheers.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!