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 

Help with Scanline and TBits

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





PostPosted: Mon Jul 21, 2003 9:30 pm    Post subject: Help with Scanline and TBits Reply with quote



I am trying to use a mono bitmap to detect which points are in an ellipse.
I draw the ellipse in black on a large mono bitmap and test the bits to see
if a coordinate fel within or outside of the ellipse (within, the bit is 0).
I think the best way to do this would be to get a Scanline from the mono
bitmap, cast or convert it to TBits and then use the TBits index in my For
loop.
This isn't working:

Q := TBits(MonoBM.Scanline[Row]);
Q.Size := DrawRect.Right; // size is -1 if I don't do this, cast
seems not to have worked
for loop := 0 to to Bitmap.Right -1 do
if Q[a] then // this blows with 'Priveliged Instruction' error
...

Anyone know how to get mono bitmap bits into a TBits?




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.