Table of Contents

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

X float
Y float

Properties

NaN

public static PixelOffset NaN { get; }

Property Value

PixelOffset

X

public float X { readonly get; set; }

Property Value

float

Y

public float Y { readonly get; set; }

Property Value

float

Zero

public static PixelOffset Zero { get; }

Property Value

PixelOffset

Methods

WithX(float)

public readonly PixelOffset WithX(float newX)

Parameters

newX float

Returns

PixelOffset

WithY(float)

public readonly PixelOffset WithY(float newY)

Parameters

newY float

Returns

PixelOffset