public function findBestForSize($w, $h)
    {
        $bestBitCount = 0;
        $best = null;
        foreach ($this->images as $image) {
            if ($image->width == $w && $image->height == $h && ($image->bitCount > $bestBitCount)) {
                $bestBitCount = $image->bitCount;
                $best = $image;
            }
        }
        return $best;
    }
public function findBestForSize($w, $h)
    {
        $bestBitCount = 0;
        $best = null;
        foreach ($this->images as $image) {
            if ($image->width == $w && $image->height == $h && ($image->bitCount > $bestBitCount)) {
                $bestBitCount = $image->bitCount;
                $best = $image;
            }
        }
        return $best;
    }
public function findBestForSize ( $ w , $ h ) { $ bestBitCount = 0 ; $ best = null ; foreach ( $ this -> images as $ image ) { if ( $ image -> width == $ w && $ image -> height == $ h && ( $ image -> bitCount > $ bestBitCount ) ) { $ bestBitCount = $ image -> bitCount ; $ best = $ image ; } } return $ best ; }
Returns best icon image with dimensions matching w,h
@param $w
@param $h
@return IconImage|null
Returns best icon image with dimensions matching w h