I'll see what I can do for you in the evening
----------
edit: Sorry was to busy yesterday I'll hopefully see this evening what I can do
Have you tried to debug that BizDraw example to see how it works ?
Printable View
I'll see what I can do for you in the evening
----------
edit: Sorry was to busy yesterday I'll hopefully see this evening what I can do
Have you tried to debug that BizDraw example to see how it works ?
thank you
Here are some other examples which may help you using the bitmap class
http://ondotnet.com/pub/a/dotnet/200...ng.html?page=3
At first draw a black circle to an empty white bitmap.
Then read out the x/y data of each black point in that bitmap so you get an array of that positions. If you read them reading from left to right and from top to bottom then you will get at least two or more black points in each line. left from the first and right from the last in each line you will have to fill color grey.
Inside the circle is the bitmap.
As a first step dont care about motion of the picture.
Simple you have after the first group og black points which is the left borders line you have to copy in the bitmap. Until you reach the first black point of the right circles border.
For copying parts of the bitmap at first fill an Image with that pictrure and then you can copy the data using ownerdrawing Draw method to the real Form surface.
Give this a try and show what you have. Then I'll have a look on it.
I have added a drawing that shows the idea I described showing one pixel line
ok . I will do as you said.
ok
I tried to code piece of code using Bitmap class.I will send it to you right now to your e-mail. please have a look on it.
In the first program you have sent me the MouseMove Delegate code moves the whole picturebox, that is impossible.
Additional: You will really need to draw it ownerdrawn. Using Picturebox.Image and calculating the changes outside of it by always adding the changed picture during movement will not work
I have done some changes to your first code a) regarding MouseMove
b) reading bitmap in an two dimensional array and from there copying the correct picture to the needed picture. But because I simple used your method to send the created result as a full image to the picturebox you will see that moving the picture will give people hard time. So all needs to be done ownerdrawn. I had tried to send it yesterday night, but your email had some problems with it and refused to accept it. ( Maybe there was an exe file in it as I simple zipped the project. ) So I'll see to send it in a few hours. Its only to get you the idea. You then need to redo that conceipt as an ownerdrawn issue