Struct PixelOffset
- Namespace
- ScottPlot
- Assembly
- ScottPlot.dll
Represents the distance from one pixel relative to another in pixel units. Increasing X offset moves a pixel to the right. Increasing Y offset moves a pixel downward.
public record struct PixelOffset : IEquatable<PixelOffset>
- Implements
- Inherited Members
- Extension Methods
Constructors
PixelOffset(float, float)
Represents the distance from one pixel relative to another in pixel units. Increasing X offset moves a pixel to the right. Increasing Y offset moves a pixel downward.
public PixelOffset(float X, float Y)
Parameters
Properties
NaN
public static PixelOffset NaN { get; }
Property Value
X
public float X { readonly get; set; }
Property Value
Y
public float Y { readonly get; set; }
Property Value
Zero
public static PixelOffset Zero { get; }
Property Value
Methods
WithX(float)
public readonly PixelOffset WithX(float newX)
Parameters
newX
float
Returns
WithY(float)
public readonly PixelOffset WithY(float newY)
Parameters
newY
float