request_Paint()  returns a Bitmap object. It is probably because it
takes a lot of memory that it can't reply to all requests.
//here's the js call again
function request_Paint()
{
    frmAdjustMediane.picImage_Paint(response_Paint);
}

Here's the picImage_Paint c# method :

[AjaxPro.AjaxMethod]
    public Bitmap picImage_Paint()
    {
        System.Drawing.Image imgSrc =
System.Drawing.Image.FromFile(sImageSource);
        Graphics grDst = Graphics.FromImage(imgSrc);

//drawing stuff...

        grDst.Dispose();
        return (Bitmap)imgSrc;
    }


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Ajax.NET Professional" group.

To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]

For more options, visit this group at http://groups.google.com/group/ajaxpro

The latest downloads of Ajax.NET Professional can be found at 
http://www.ajaxpro.info
-~----------~----~----~----~------~----~------~--~---

Reply via email to