Click or drag to resize

RenderContextTest Method (Int32, Int32, Int32, Int32, Int32, Double, RenderMask)

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Implemented by derived classes to check whether the given screen area overlaps an area reserved by an already placed object.

Namespace:  Telogis.GeoBase
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public abstract bool Test(
	int x,
	int y,
	int width,
	int height,
	int buffer,
	double angle,
	RenderMask which
)

Parameters

x
Type: SystemInt32
The horizontal position of the top left corner of the rectangle.
y
Type: SystemInt32
The vertical position of the top left corner of the rectangle.
width
Type: SystemInt32
The width of the rectangle in pixels
height
Type: SystemInt32
The height of the rectangle in pixels
buffer
Type: SystemInt32
The buffer value specifies the number of pixels on each side of the object that must remain clear of other objects, for the purpose of visual separation.
angle
Type: SystemDouble
Specifies a clockwise rotation (in degrees) of the testable area.
which
Type: Telogis.GeoBaseRenderMask
Specifies which RenderMask layer to test.

Return Value

Type: Boolean
True if the tested area is available for placement, false if there is an overlap with an already-placed area.
Remarks

The x, y, width and height parameters describe a rectangle, with the given height and width, with the top-left corner anchored at the co-ordinates specified by x and y.

See Place(Rectangle, Int32, Double, RenderMask) for an explanation of buffer values.

See Also