|
import java.util.*;
public class CompareWidth implements Comparator<AtlasImage>
{
public int compare(AtlasImage ai1, AtlasImage ai2)
{
return ai2.getImage().getWidth() - ai1.getImage().getWidth();
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
After working in the software industry for many years, I've started my own
games company that specialises in strategy games for mobile platforms.