Struct PixelSize
- Namespace
- ScottPlot
- Assembly
- ScottPlot.dll
public struct PixelSize : IEquatable<PixelSize>
- Implements
- Inherited Members
- Extension Methods
Constructors
PixelSize(double, double)
public PixelSize(double width, double height)
Parameters
PixelSize(float, float)
public PixelSize(float width, float height)
Parameters
Fields
Height
public readonly float Height
Field Value
Width
public readonly float Width
Field Value
Properties
Area
public float Area { get; }
Property Value
Diagonal
public float Diagonal { get; }
Property Value
Infinity
public static PixelSize Infinity { get; }
Property Value
NaN
public static PixelSize NaN { get; }
Property Value
Zero
public static PixelSize Zero { get; }
Property Value
Methods
Contains(PixelSize)
public bool Contains(PixelSize size)
Parameters
sizePixelSize
Returns
Contracted(PixelPadding)
public PixelSize Contracted(PixelPadding pad)
Parameters
padPixelPadding
Returns
Equals(PixelSize)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(PixelSize other)
Parameters
otherPixelSizeAn object to compare with this object.
Returns
- bool
true if the current object is equal to the
otherparameter; otherwise, false.
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand this instance are the same type and represent the same value; otherwise, false.
Expanded(PixelPadding)
public PixelSize Expanded(PixelPadding pad)
Parameters
padPixelPadding
Returns
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
Max(PixelSize)
public PixelSize Max(PixelSize rect2)
Parameters
rect2PixelSize
Returns
ToPixelRect()
public PixelRect ToPixelRect()
Returns
ToPixelRect(Pixel, Alignment)
public PixelRect ToPixelRect(Pixel pixel, Alignment alignment)
Parameters
Returns
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.
Operators
operator ==(PixelSize, PixelSize)
public static bool operator ==(PixelSize a, PixelSize b)
Parameters
Returns
operator !=(PixelSize, PixelSize)
public static bool operator !=(PixelSize a, PixelSize b)