Defines a collection of pixel offsets, one for each string 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 and Y pixel offset for each string in the batch. There must be one X pixel offset followed by one Y pixel offset for each string passed to the Text Batch Primitive's
Set
orSetPartial
method.
The pixel offset defines a screen-space translation for a string 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 string in a text batch and a point in a point batch have the same position, the string may have a pixel offset applied to it so it doesn't overlap the point.
Per-string pixel offsets override the per-batch pixel offset. Therefore, when per-string pixel offsets are defined with this method, Pixel Offset is ignored.
Shows the format of the PixelOffsets parameter when setting per string pixel offsets.
[C#] | ![]() | |
---|---|---|
|
Shows the format of the PixelOffsets parameter when setting per string pixel offsets.
[Visual Basic .NET] | ![]() | |
---|---|---|
|