Defines a collection of pixel offsets, one for each marker in the batch.
[Visual Basic .NET] |
---|
Public Sub SetPixelOffsets( _ ByRef PixelOffsets As System.Array _ ) |
[C#] |
---|
public void SetPixelOffsets( |
[Managed C++] |
---|
public: void SetPixelOffsets( |
[Java] |
---|
public setPixelOffsets( |
[Unmanaged C++] |
---|
public: HRESULT SetPixelOffsets( |
- PixelOffsets
- An array containing a x pixel offset and a y pixel offset for each marker in the batch. There must be one x pixel offset followed by one y pixel offset for each position passed to the Marker Batch Primitive's
Set
orSetPartial
method.
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.
Shows the format of the PixelOffsets parameter when setting per marker pixel offsets.
[C#] | ![]() | |
---|---|---|
|
Shows the format of the PixelOffsets parameter when setting per marker pixel offsets.
[Visual Basic .NET] | ![]() | |
---|---|---|
|