SRL Archive - Help

Smart Graphics Error


Mat

2012-08-11 06:48:59

Error: Exception: The Points you passed to DrawATPA exceed the bitmap's bounds at line 96
Any Idea?
Thanks
Mat
Also I sort the bitmap drawing and i still get it.

Nebula

2012-08-11 14:52:45

Post more code. Does this happen when a ATPA drawing overlaps the bitmap drawing?

Brandon

2012-08-11 15:11:54

You're passing it bad points. It's telling you you're drawing out of bounds. If you don't care then try catch it:


try
Smart_DrawATPA(......); //It'll draw whatever it can and throw on whatever it can't.
except
end;

It uses a pointer for drawing to smart and I couldn't think of any other way to draw than use the standard simba functions. Inother words, it uses what's built in, nothing custom.