I have solved the problem, I had made oGfx a property but actually it is required to be a local variable. Plus I missed while adding pixels that oGfx is about the loNewBMP and not the property oBMP.
Thanks.
Regards Bhavbhuti ___________________________________________ Softwares for Indian Businesses at: http://venussoftop.tripod.com ___________________________________________ venussoftop@gmail.com ___________________________________________