@ Nonnull public final IMPLTYPE scaleBestMatching ( @ Nonnegative final int nMaxWidth , @ Nonnegative final int nMaxHeight ) { if ( m_aExtent != null ) m_aExtent = m_aExtent . getBestMatchingSize ( nMaxWidth , nMaxHeight ) ; return thisAsT ( ) ; }
Scales the image so that neither with nor height are exceeded keeping the aspect ratio .