SetSrcRect example for C++ 4.0 and later

This example zooms in on the image by reducing the source rectangle and repaints the image.

float NewLeft = m_Lead1.GetSrcLeft() + (m_Lead1.GetSrcWidth() * 0.1f);
float NewTop = m_Lead1.GetSrcTop() + (m_Lead1.GetSrcHeight() * 0.1f);
float NewWidth = m_Lead1.GetSrcWidth() * 0.8f;
float NewHeight = m_Lead1.GetSrcHeight() * 0.8f;
if (NewWidth > 1 && NewHeight >1)
   m_Lead1.SetSrcRect(NewLeft, NewTop, NewWidth, NewHeight);
m_Lead1.ForceRepaint();