Click or drag to resize

TextBatchPrimitiveOptionalParametersPixelOffset Property

Gets or sets the per-batch pixel offset, which is applied to each string in the text batch.

Namespace:  AGI.Foundation.Graphics
Assembly:  AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 24.3.420.0 (24.3.420.0)
Syntax
public PointF PixelOffset { get; set; }

Property Value

Type: PointF
Remarks

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.

If per-string pixel offsets were specified with SetPixelOffsets(IEnumerablePointF) the per-batch pixel offset is ignored.

See Also