Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (edited)

Hi, just knocked up a simple program to give you an idea. Rubber bands are a nightmare! If you don�t have many primitives to store say up to 10,000 then this technique will do. Otherwise you will need to create a bit map to display the primitives. Using XOR to rub out lines is the traditional way to go, but .net does not have this, except using API calls!

 

Hope this helps

Rubberband.zipFetching info...

Edited by PlausiblyDamp
Posted

Thanks I will give this a go tonight.

 

Just another question, at the moment I have managed to allow the user to draw a line and text onto a existing bmp image (will post code if needed, but do not have access to it at the moment) but what I want to be able to do is identify existing lines, text etc. that have been placed and give the user the option to modify or delete the items without having to go down the MS Paint way of rubbing out the graphics. Any ideas or am I getting into difficult coding??

 

Cheers

 

Simon

Posted
  Quote
This is kind of off topic' date=' but what is a rubber band line?[/quote']

 

 

A good example is a selection rectangle, which is seen in, may applications including the Visual Studio designer. For example you click the mouse and drag a rectangle over some objects and when you let go the objects are selected. The rubber band part is where the rectangle stretches to follow the mouse. Rubber band line are used extensively in drawing packages

 

Hope I make sense!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...