Sign in to follow this  
Followers 0
TheOnlyOne

Delete a line gdiplus

3 posts in this topic

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.

Share this post


Link to post
Share on other sites



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.

:graduated:


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

Share this post


Link to post
Share on other sites

Of course! i just redraw the line as the background color and it worked thanks :graduated:

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0