Summary
Represents a point in device pixels.
- Namespace
- Avalonia
- Interfaces
-
- IEquatable
<PixelPoint>
- IEquatable
- Base Types
-
- object
- ValueType
graph BT
Type-->Base0["ValueType"]
Base0-->Base1["object"]
Type-.->Interface0["IEquatable<PixelPoint>"]
Type["PixelPoint"]
class Type type-node
Syntax
public readonly struct PixelPoint : ValueType, IEquatable<PixelPoint>
Constructors
Name | Summary |
---|---|
PixelPoint |
Initializes a new instance of the PixelPoint structure.
|
Fields
Name | Constant Value | Summary |
---|---|---|
Origin |
A point representing 0,0.
static
|
Properties
Methods
Name | Value | Summary |
---|---|---|
Equals |
bool |
Checks for equality between a point and an object.
|
Equals |
bool |
Returns a boolean indicating whether the point is equal to the other given point.
|
FromPoint |
PixelPoint |
Converts a
Point to device pixels using the specified scaling factor.
static
|
FromPoint |
PixelPoint |
Converts a
Point to device pixels using the specified scaling factor.
static
|
FromPointWithDpi |
PixelPoint |
Converts a
Point to device pixels using the specified dots per inch (DPI).
static
|
FromPointWithDpi |
PixelPoint |
Converts a
Point to device pixels using the specified dots per inch (DPI).
static
|
GetHashCode |
int |
Returns a hash code for a
PixelPoint .
|
Parse |
PixelPoint |
Parses a
PixelPoint string.
static
|
ToPoint |
Point |
Converts the
PixelPoint to a device-independent Point using the
specified scaling factor.
|
ToPoint |
Point |
Converts the
PixelPoint to a device-independent Point using the
specified scaling factor.
|
ToPointWithDpi |
Point |
Converts the
PixelPoint to a device-independent Point using the
specified dots per inch (DPI).
|
ToPointWithDpi |
Point |
Converts the
PixelPoint to a device-independent Point using the
specified dots per inch (DPI).
|
ToString |
string |
Returns the string representation of the point.
|
WithX |
PixelPoint |
Returns a new
PixelPoint with the same Y co-ordinate and the specified X co-ordinate.
|
WithY |
PixelPoint |
Returns a new
PixelPoint with the same X co-ordinate and the specified Y co-ordinate.
|
Operators
Name | Value | Summary |
---|---|---|
implicit operator |
PixelVector | |
operator != |
bool | |
operator - |
PixelPoint | |
operator - |
PixelPoint | |
operator + |
PixelPoint | |
operator + |
PixelPoint | |
operator == |
bool |