SetSrcRect example for C++ 5.0 and later

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

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