I am using the ActiveX version of GdViewer in an ASP.Net website and am able to show documents in it by using this code
Code: Select all
ImageID = m_GdPictureImaging.CreateGdPictureImageFromFile(path);
var oGdViewer = document.getElementById("GdViewer1");
oGdViewer.DisplayFromGdPictureImage(ImageID);
the code i use is
Code: Select all
var result = m_GdPictureImaging.SetBrightness(ImageID, currentBrightness);
var result = oGdViewer.Redraw();
let say
The document has loaded. starting value is 0
increase brightness by 10 : no visible effect (brightness : 10 )
increase brightness by 10 : no visible effect(brightness : 20)
decrease brightness by 10 : no visible effect(brightness : 10)
decrease brightness by 10 : no visible effect(brightness : 0)
decrease brightness by 10 : gets a little dark(brightness : -10)
decrease brightness by 10 : get more darker(brightness : -20)
increase brightness by 10 : gets more darker(brightness : -10 )
increase brightness by 10 : no visible effect(brightness : 0)
then i have to increase 3 times more to get back to the original brightness. i i push brightness all the way to -100 then no matter how many times i increase it it stays black only.
I am trapping the gdstatus for each action and sometimes(rarely) i get a Out of Memory status and other wise it is 0 and no action is performed.
Please can you help as to why this problem is occuring and why does an activex control goes out of memory?
Please help as this is urgent and needs to be fixed soon