Hello,
be aware that a division/multiplication with a float will result in a float. If you cast the result to int, the value will be truncated. Use rounding functions like floor, ceil or so.
But if you only want to get rid of the warning, use this for example:
rectDraw.SetRect(0, 0, rectDraw.right, (int)(rectDraw.right / nRatioImage));
rectDraw.SetRect(0, 0, (int)(rectDraw.bottom * nRatioImage), rectDraw.bottom);
It will truncate the float result to int according to the compiler settings (normally without rounding).
Regards, Guido