I am rendering images from ASP code and using that image in <img> (working fine) now i want to use GflAx to merge one another image with the rendered image i tried so many combinations but not able to get the merged image not even actull image when i use GflAx.
My Code:-
Code: Select all
ctrl =Server.CreateObject("GflAx.GflAx");
ctrl.EnableLZW = 0;
ctrl.MergeAddFile(imagegen.Render(), 10, 0, 0); /*where imagegen is a module which is generating map images in PNG format*/
ctrl.MergeAddFile ("arrow.png", 15, 0, 0);
//ctrl.LoadBitmap(mapserver.Render());
//ctrl.DrawLine(0,0,100,100);
ctrl.Merge();
ctrl.SaveformatName = "jpeg";
Response.BinaryWrite(ctrl.SendBinary());
ctrl=null;
What might be the reason ? any clue ?
Thanks
Babar Shafiq.