Click or drag to resize

MarkerBatchPrimitiveOptionalParametersSetPixelOffsets Method

Defines a collection of pixel offsets, one for each marker in the batch.

Namespace:  AGI.Foundation.Graphics
Assembly:  AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 24.1.418.0 (24.1.418.0)
Syntax
public void SetPixelOffsets(
	IEnumerable<PointF> pixelOffsets
)

Parameters

pixelOffsets
Type: System.Collections.GenericIEnumerablePointF
The pixel offsets for each marker in the batch. There must be one pixel offset for each position passed to the MarkerBatchPrimitive's Set or SetPartial method.
Remarks

The pixel offset defines a screen-space translation for a marker from its position. Positive x values translate to the right and positive y values translate up. This is commonly used when more than one primitive is located at the same position. For example, if a marker in a marker batch and a point in a point batch have the same position, the marker may have a pixel offset applied to it so it doesn't overlap the point.

Per-marker pixel offsets override the per-batch pixel offset. Therefore, when per-marker pixel offsets are defined with this method, MarkerBatchPrimitive.PixelOffset is not used.

See Also