Thank you for your reply. I am sorry, I was desperate and so I was changing the code before posting it... Please copy it to a form and run it.. You will see the trapezoid that appears is not symmetric even when the points tell it should be.
Also, iXBorder is set to 10 in FormLoad.
We miss you, friend... Rest in Peace, we will take care of the rest of it.
[vbcode]
On Error Me.Fault = False
[/vbcode]
- Silence is the human way to share ignorance
Tec-Nico
dglienna, I am using twips for all, that's why I make the conversions... xjake, I will try your code... It is strange because it gets symmetrical if you add a 1 to the last coordinate.
We miss you, friend... Rest in Peace, we will take care of the rest of it.
[vbcode]
On Error Me.Fault = False
[/vbcode]
- Silence is the human way to share ignorance
Tec-Nico
Thanks, Vishalgiri... But the credit is for si_geek, I found a skelleton of the code that is like the one I am using and I just adapted it to my needs.
I just added the coordinates for a trapezoid and the API for making the form have the shape of the region. And I also made it a call for drawing (I think I will generalize it later when I have time)
We miss you, friend... Rest in Peace, we will take care of the rest of it.
[vbcode]
On Error Me.Fault = False
[/vbcode]
- Silence is the human way to share ignorance
Tec-Nico
Hmm, well, what comes to mind is: if the coordinates were exact same and you were trying to draw something of 1 x 1 pixel, nothing would appear because the size would be 0 x 0. So you have to add one to the coordinates so that the size would be 1 x 1.
Does this make sense? I'm just about to go to sleep so the quality of the explanation is what it is...
We need to add one more to delimitate it properly and thus be able to make regions that will be 1 x 1 pixels, if it wasn't like that we would have them of 0 x 0 instead.
We miss you, friend... Rest in Peace, we will take care of the rest of it.
[vbcode]
On Error Me.Fault = False
[/vbcode]
- Silence is the human way to share ignorance
Tec-Nico