 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
li Guest
|
Posted: Wed May 25, 2005 4:49 am Post subject: How to Statistic the length and count of line in a bitmap |
|
|
Hello:
I want to Statistic the length and count of line in a bitmap.I have
translate some code form Visual C++.but it has some problem while it is
programing.
Has anybody some demo to How to Statistic the length and count of line
in a bitmap?
The url of itmap is below :
http://www.01cn.net/noncgi/attach/2005/05/25/10268-aaaa-embed.JPG
Thanks a lot in advance!!
li
|
|
| Back to top |
|
 |
Jon Lennart Aasenden Guest
|
Posted: Wed May 25, 2005 7:40 am Post subject: Re: How to Statistic the length and count of line in a bitm |
|
|
A bit more info on what you want to do would be nice.
If you mean to "count" the pixels in a line, that is easy.
Search for Bresham and delphi on google, and you will find a unit for
drawing lines, circles and ellipses using integer maths. You could then
modify these to not draw anything, but return a number instead.
Or like i do, populate an array of TPoints - so you can render the shapes
yourself.
Jon Lennart Aasenden
"li" <li0713 (AT) hotmail (DOT) com> wrote
| Quote: | Hello:
I want to Statistic the length and count of line in a bitmap.I have
translate some code form Visual C++.but it has some problem while it is
programing.
Has anybody some demo to How to Statistic the length and count of
line
in a bitmap?
The url of itmap is below :
http://www.01cn.net/noncgi/attach/2005/05/25/10268-aaaa-embed.JPG
Thanks a lot in advance!!
li
|
|
|
| Back to top |
|
 |
li Guest
|
Posted: Wed May 25, 2005 8:46 am Post subject: Re: How to Statistic the length and count of line in a bitm |
|
|
yes
my count is the pixel in a line.
Can you give me your email?I may give you my code,and my program has some
bug,but i can not find .can you help me?
thanks
"Jon Lennart Aasenden" <post_nospam_nojunk (AT) jurasoft (DOT) no> 写入消息新闻
:42942bf2$1 (AT) newsgroups (DOT) borland.com...
| Quote: | A bit more info on what you want to do would be nice.
If you mean to "count" the pixels in a line, that is easy.
Search for Bresham and delphi on google, and you will find a unit for
drawing lines, circles and ellipses using integer maths. You could then
modify these to not draw anything, but return a number instead.
Or like i do, populate an array of TPoints - so you can render the shapes
yourself.
Jon Lennart Aasenden
"li" <li0713 (AT) hotmail (DOT) com> wrote in message
news:429403d4 (AT) newsgroups (DOT) borland.com...
Hello:
I want to Statistic the length and count of line in a bitmap.I
have
translate some code form Visual C++.but it has some problem while it is
programing.
Has anybody some demo to How to Statistic the length and count of
line
in a bitmap?
The url of itmap is below :
http://www.01cn.net/noncgi/attach/2005/05/25/10268-aaaa-embed.JPG
Thanks a lot in advance!!
li
|
|
|
| Back to top |
|
 |
li Guest
|
Posted: Wed May 25, 2005 11:22 am Post subject: Re: How to Statistic the length and count of line in a bitm |
|
|
yes
my count is the pixel in a line.
Can you give me your email?I may give you my code,and my program has some
bug,but i can not find .can you help me?
thanks
"Jon Lennart Aasenden" <post_nospam_nojunk (AT) jurasoft (DOT) no> 写入消息新闻
:42942bf2$1 (AT) newsgroups (DOT) borland.com...
| Quote: | A bit more info on what you want to do would be nice.
If you mean to "count" the pixels in a line, that is easy.
Search for Bresham and delphi on google, and you will find a unit for
drawing lines, circles and ellipses using integer maths. You could then
modify these to not draw anything, but return a number instead.
Or like i do, populate an array of TPoints - so you can render the shapes
yourself.
Jon Lennart Aasenden
"li" <li0713 (AT) hotmail (DOT) com> wrote in message
news:429403d4 (AT) newsgroups (DOT) borland.com...
Hello:
I want to Statistic the length and count of line in a bitmap.I
have
translate some code form Visual C++.but it has some problem while it is
programing.
Has anybody some demo to How to Statistic the length and count of
line
in a bitmap?
The url of itmap is below :
http://www.01cn.net/noncgi/attach/2005/05/25/10268-aaaa-embed.JPG
Thanks a lot in advance!!
li
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|