GD boundsSafe(
syntax: |
gd.boundsSafe(x, y) gd.boundsSafe(point) |
where: |
x - horizontal pixel location.
y - vertical pixel location.
point - Point specification. See GD getPixel() for a description.
|
return: |
boolean - whether the specified coordinates are within bounds.
|
description: |
This method sees if the specified pixel location is within the bounds of the image. If so, then true is returned, false otherwise.
|
see: |
#link <gd>
|
example: |
var gd = new GD(5,5); gd.boundsSafe( 4, 3 ); // True gd.boundsSafe( [4,5] ); // False gd.boundsSafe( {x:6,y:2} ) // False |