ImageLibEx

ceaser

Active Member
Licensed User
Hi

I wonder if somebody can help me. If I have loaded a background map using AGraham's dll, how do I get rid of the map again.:sign0085:

I do not want to load another map...I want a blank screen(form).

Thanks
Micael
 

klaus

Expert
Licensed User
Longtime User
You muist draw a filled rectangle with the Form's background color.

You can use either:
Form1.Line(0,0,Form1.Width,Form1.Height,col,BF)
col is the form's background color

or
drwForm1.FillRectangle1(brush.Value,rect.Value)
rect is a RectangleEx object, same as for displaying the Map.
drwForm1 is a DrawerEx object for Form1.
brush is a SolidBrush object with the form's background color.

or
drwForm1.FillRectangle2(brush.Value,0,0,Form1.Width,Form1.Height)

If the map is drawn onto the form's forlayer you can use:
Form1.FErase(0,0,Form1.Width,Form1.Height)

Best regards.
 

ceaser

Active Member
Licensed User
Hi Klaus

Vielen Dank.

I have used the second option as I am busy rewriting my CAD program using Agraham's ImageLibEx dll.

Regards
Michael
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…