編輯

共用方式為


SKSizeI Struct

Definition

Stores an ordered pair of integers describing the width and height of a rectangle.

public struct SKSizeI
public struct SKSizeI : IEquatable<SkiaSharp.SKSizeI>
Inheritance
SKSizeI
Implements

Constructors

SKSizeI(Int32, Int32)

Creates a new size with a given width and height.

SKSizeI(SKPointI)

Creates a new size from the offset of a point.

Fields

Empty

Represents a new instance of the SKSizeI class with member data left uninitialized.

Properties

Height

Gets or sets the vertical component of this SKSizeI structure.

IsEmpty

Gets a value that indicates whether this SKSizeI structure has zero width and height.

Width

Gets or sets the horizontal component of this SKSizeI structure.

Methods

Add(SKSizeI, SKSizeI)

Adds the width and height of one SKSizeI structure to the width and height of another SKSizeI structure.

Equals(Object)

Tests to see whether the specified object is a SKSizeI structure with the same dimensions as this SKSizeI structure.

Equals(SKSizeI)

Tests to see whether the specified object is a SKSizeI structure with the same dimensions as this SKSizeI structure.

GetHashCode()

Returns a hash code for this SKSizeI structure.

Subtract(SKSizeI, SKSizeI)

Subtracts the width and height of one SKSizeI structure from the width and height of another SKSizeI structure.

ToPointI()

Converts a SKSizeI structure to a SKPointI structure.

ToString()

Converts this SKSizeI to a human readable string.

Operators

Addition(SKSizeI, SKSizeI)

Adds the width and height of one SKSizeI structure to the width and height of another SKSizeI structure.

Equality(SKSizeI, SKSizeI)

Tests whether two SKSizeI structures are equal.

Explicit(SKSizeI to SKPointI)

Converts the specified SKSizeI structure to a SKPointI structure.

Inequality(SKSizeI, SKSizeI)

Tests whether two SKSizeI structures are different.

Subtraction(SKSizeI, SKSizeI)

Subtracts the width and height of one SKSizeI structure from the width and height of another SKSizeI structure.

Applies to