public function findBest()
    {
        $bestBitCount = 0;
        $bestWidth = 0;
        $best = null;
        foreach ($this->images as $image) {
            if (($image->width > $bestWidth) ||
                (($image->width == $bestWidth) && ($image->bitCount > $bestBitCount))
            ) {
                $bestWidth = $image->width;
                $bestBitCount = $image->bitCount;
                $best = $image;
            }
        }
        return $best;
    }
public function findBest()
    {
        $bestBitCount = 0;
        $bestWidth = 0;
        $best = null;
        foreach ($this->images as $image) {
            if (($image->width > $bestWidth) ||
                (($image->width == $bestWidth) && ($image->bitCount > $bestBitCount))
            ) {
                $bestWidth = $image->width;
                $bestBitCount = $image->bitCount;
                $best = $image;
            }
        }
        return $best;
    }
public function findBest ( ) { $ bestBitCount = 0 ; $ bestWidth = 0 ; $ best = null ; foreach ( $ this -> images as $ image ) { if ( ( $ image -> width > $ bestWidth ) || ( ( $ image -> width == $ bestWidth ) && ( $ image -> bitCount > $ bestBitCount ) ) ) { $ bestWidth = $ image -> width ; $ bestBitCount = $ image -> bitCount ; $ best = $ image ; } } return $ best ; }
Finds the highest quality image in the icon
@return IconImage
Finds the highest quality image in the icon