Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

How to Set Rectangle location properties? (Old Way)

Oh yes, I saw this = https://msdn.microsoft.com/en-us/library....110).aspx

Dim recta As New Rectangle
'It says these properties are Read-only.
recta.Left =
recta.Bottom =
recta.Right =
recta.Top =

And my problem is, I want to use these properties to set values :-/
Because i have values in this format. Many!
And so i guess, i am in a problem. ^_^

I saw the example..
Dim blackPen As New Pen(Color.FromArgb(255, 0, 0, 0), 5)
e.Graphics.DrawRectangle(blackPen, 10, 10, 100, 50)

How do i..
e.Graphics.DrawRectangle(left-x, bottom-y, right-x, top-y)

Instead of..
e.Graphics.DrawRectangle(blackPen, 10, 10, 100, 50)

?

OR

Is there anyway to convert locations?
E.G
1) 2694 to 9 'A Y co-ordinate
2) 2706 to 12 'A height
?

Because i want only the 'Y' and 'Height' converted.

[img]http://s16.postimg.org/6a1tt037p/help.jpg[/img]

Please Help! Please. Please.
Thankyou.
Hmmm...I don't understand your question.
Rectangle can be defined as:

PHP Code

<?php 
Dim myRect 
As Rectangle = New Rectangle(some constructors here. Use your best choice) 
Why do you need to set the properties instead of via the constructor?
And what are you doing with Tesseract? You can just make tessdata and use that.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Shell] by Emre_Sep 6, 2019 11:17 PM 0 177 Sep 6, 2019 11:17 PM
Last Post: Emre_
[Shell] by Emre_Aug 31, 2019 05:10 AM 0 100 Aug 31, 2019 05:10 AM
Last Post: Emre_
[.NET] by AjummaApr 3, 2019 09:51 AM 5 332 Apr 3, 2019 09:51 AM
Last Post: itcorp