Log in

View Full Version : Smart Graphics Error



Mat
08-11-2012, 10:48 AM
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
08-11-2012, 06:52 PM
Post more code. Does this happen when a ATPA drawing overlaps the bitmap drawing?

Brandon
08-11-2012, 07:11 PM
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.