SetSrcClipRect example for C++ 4.0 and later

This example crops the image by reducing the source clipping area and repaints the image.

float NewLeft = m_Lead1.GetSrcClipLeft() + (m_Lead1.GetSrcClipWidth() * 0.1f);
float NewTop = m_Lead1.GetSrcClipTop() + (m_Lead1.GetSrcClipHeight() * 0.1f);
float NewWidth = m_Lead1.GetSrcClipWidth() * 0.8f;
float NewHeight = m_Lead1.GetSrcClipHeight() * 0.8f;
if (NewWidth > 1 && NewHeight > 1)
   m_Lead1.SetSrcClipRect(NewLeft, NewTop, NewWidth, NewHeight);
m_Lead1.ForceRepaint();