PixelPoint Struct

Summary

Represents a point in device pixels.
Namespace
Avalonia
Base Types
  • object
  • ValueType
graph TD Base0["ValueType"]-->Type Base1["object"]-->Base0 Type["PixelPoint"] class Type type-node

Syntax

public readonly struct PixelPoint : ValueType

Constructors

Name Summary
PixelPoint(int, int) Initializes a new instance of the PixelPoint structure.

Fields

Name Constant Value Summary
Origin
A point representing 0,0.
static

Properties

Name Value Summary
X int
Gets the X co-ordinate.
Y int
Gets the Y co-ordinate.

Methods

Name Value Summary
Equals(object) bool
Checks for equality between a point and an object.
FromPoint(Point, double) PixelPoint
Converts a Point to device pixels using the specified scaling factor.
static
FromPoint(Point, Vector) PixelPoint
Converts a Point to device pixels using the specified scaling factor.
static
FromPointWithDpi(Point, double) PixelPoint
Converts a Point to device pixels using the specified dots per inch (DPI).
static
FromPointWithDpi(Point, Vector) 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(string) PixelPoint
Parses a PixelPoint string.
static
ToPoint(double) Point
Converts the PixelPoint to a device-independent Point using the specified scaling factor.
ToPoint(Vector) Point
Converts the PixelPoint to a device-independent Point using the specified scaling factor.
ToPointWithDpi(double) Point
Converts the PixelPoint to a device-independent Point using the specified dots per inch (DPI).
ToPointWithDpi(Vector) 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(int) PixelPoint
Returns a new PixelPoint with the same Y co-ordinate and the specified X co-ordinate.
WithY(int) PixelPoint
Returns a new PixelPoint with the same X co-ordinate and the specified Y co-ordinate.

Operators

Name Value Summary
operator !=(PixelPoint, PixelPoint) bool
operator ==(PixelPoint, PixelPoint) bool

Extension Methods

Name Value Summary
ToAvnPoint() AvnPoint
From Helpers