TheOnlyOne Posted November 17, 2010 Posted November 17, 2010 As the title said. i have about 10-20 lines in my script and one of them i want deleted the line i want deleted looks like this if thats any help $line2 = _GDIPlus_GraphicsDrawLine($gra,(@desktopwidth/2)+60,95,@desktopwidth/3+35,205,$pen) I tried to use this _Gdiplus_graphicsdispose($line2) but that didn't work out. I also tried searching around with no luck. Please help me. Thanks.
PsaltyDS Posted November 17, 2010 Posted November 17, 2010 Your line became part of the bit-mapped image it does not exist as a separate object. The return value from _GDIPlus_GraphicsDrawLine() is just True/False for success, not a handle to anything useful. The function _Gdiplus_graphicsdispose() is to dispose of the resources used by the entire graphic object, not a single element. To get rid of the line, redraw the image under it. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
TheOnlyOne Posted November 17, 2010 Author Posted November 17, 2010 Of course! i just redraw the line as the background color and it worked thanks
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now