BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to Statistic the length and count of line in a bitmap

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics
View previous topic :: View next topic  
Author Message
li
Guest





PostPosted: Wed May 25, 2005 4:49 am    Post subject: How to Statistic the length and count of line in a bitmap Reply with 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
Jon Lennart Aasenden
Guest





PostPosted: Wed May 25, 2005 7:40 am    Post subject: Re: How to Statistic the length and count of line in a bitm Reply with 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

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





PostPosted: Wed May 25, 2005 8:46 am    Post subject: Re: How to Statistic the length and count of line in a bitm Reply with quote



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





PostPosted: Wed May 25, 2005 11:22 am    Post subject: Re: How to Statistic the length and count of line in a bitm Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.