This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes Picture Manipulation Methods Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Picture Manipulation Methods " Watch "Picture Manipulation Methods " New topic
Author

Picture Manipulation Methods

Jason Newman
Ranch Hand

Joined: Oct 20, 2010
Posts: 53
Hi, I'm new here. And in my class we have been learning java with pictures and other media.
And so I'd like to contribute a BUNCH of manipulation methods for pictures.
I'm not sure if this is were I should post it, or even IF I should post it, I just want to contribute to anyone who is interested.
Sure, everything would be done much better in Photoshop, but where is the fun in that?
Also, I'm going to try to remove anything that is related to the class, but if there is anything in here that is class related, I apologize.
All of this is done in Dr. Java.



Jason Newman
Ranch Hand

Joined: Oct 20, 2010
Posts: 53
Oh! I almost forgot. For the last two methods, you need a blank white picture to 'draw' on. It has to be AT LEAST 640x480.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38033
    
  22
Too difficult a question for "beginning". Moving thread.
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
Without having the SimplePicture class this code doesn't do much good, though...
Jason Newman
Ranch Hand

Joined: Oct 20, 2010
Posts: 53
Huh, your right. I'm not sure where you can find it. I'm almost sure that is came with the material from the book though.
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
Ah, you're talking about this book: http://coweb.cc.gatech.edu/mediaComp-plan/101. That page actually has the missing class available for download.
Jason Newman
Ranch Hand

Joined: Oct 20, 2010
Posts: 53
Yesss. That would be the book. It isn't too bad to learn from. I am studying one other book (How to Program Java 4th Ed. By Deitel). And I prefer the latter, simply because it makes you think more for yourself. But, learning using multimedia works pretty well.

But, I was just trying to contribute to a good, helpful site.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38033
    
  22
Don't use a Deitel book older than 6th edition.
Jason Newman
Ranch Hand

Joined: Oct 20, 2010
Posts: 53
Campbell Ritchie wrote:Don't use a Deitel book older than 6th edition.


Why not?
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38033
    
  22
Because they were printed before the new threading API, before generics, before auto-boxing and before the enhanced for loop, etc.
Jason Newman
Ranch Hand

Joined: Oct 20, 2010
Posts: 53
So, you are basically saying that the books are now 'outdated'?
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38033
    
  22
The 5th edition of Deitel and Deitel was outdated 6 years ago.
Jason Newman
Ranch Hand

Joined: Oct 20, 2010
Posts: 53
Heh. O.O

So, I'm guessing learning out of the fourth ed. isn't any better?

Steve Luke
Bartender

Joined: Jan 28, 2003
Posts: 4167
    
  21

True. But the things you learn won't necessarily be wrong (except for some of the more detailed Thread stuff). You would definitely need something newer which covers Java 5&6 as a supplement to what you get from these older books.


Steve
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38033
    
  22
You can get the 6th edition at Amazon from $8.40. But it is better if you go via our books page and let us get the payment for linking to Amazon
Jason Newman
Ranch Hand

Joined: Oct 20, 2010
Posts: 53
Hey, can you please remove this thread from the site? It falls under people being lazy and cheating, which wasn't my goal. I was just trying to contribute. :/
 
Consider Paul's rocket mass heater.
 
subject: Picture Manipulation Methods
 
Similar Threads
Drawing Canvas
How to fade an image?
Is there a better way to blend colors when painting with Graphics2D?
JSlider ChangeListener
JMenu Problem