 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Kevin Guest
|
Posted: Mon Jul 21, 2003 9:30 pm Post subject: Help with Scanline and TBits |
|
|
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 |
|
 |
|
|
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
|
|