Hi I am trying to upload some images async, I get Out of Memory Exception, I am disposing by using statement however I get following stack trace
<
Dispose sourceImage and destImage after job is done.
I believe you are indeed trying to paint outside the destination rectangle... if you notice your code you are in fact (in the line marked) painting image.Width
and image.Height
(original dimensions), and not the ratio-applied dimensions...