편집

다음을 통해 공유


SKRectI Struct

Definition

Stores a set of four integers that represent the upper-left corner and lower-right corner of a rectangle.

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

Constructors

SKRectI(Int32, Int32, Int32, Int32)

Initializes a new instance of the SKRectI class with the specified upper-left corner and lower-right corner.

Fields

Empty

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

Properties

Bottom

Gets or sets the y-coordinate of the bottom edge of this SKRectI structure.

Height

Gets the height of the SKRectI.

IsEmpty

Gets a value indicating whether this rectangle has a zero size and location.

Left

Gets or sets the x-coordinate of the left edge of this SKRectI structure.

Location

Gets or sets the offset of the rectangle.

MidX

Gets the x-coordinate of the middle of this rectangle.

MidY

Gets the y-coordinate of the middle of this rectangle.

Right

Gets or sets the x-coordinate of the right edge of this SKRectI structure.

Size

Gets or sets the size of the SKRectI.

Standardized

Gets this rectangle and a new rectangle with a positive width and height.

Top

Gets or sets the y-coordinate of the top edge of this SKRectI structure.

Width

Gets the width of the SKRectI.

Methods

AspectFill(SKSizeI)

Calculates the smallest rectangle that will fill the current rectangle using the specified size.

AspectFit(SKSizeI)

Calculates the largest rectangle that will fit inside the current rectangle using the specified size.

Ceiling(SKRect, Boolean)

Converts the specified SKRect structure to a SKRectI structure by rounding the SKRect values to the next higher integer values.

Ceiling(SKRect)

Converts the specified SKRect structure to a SKRectI structure by rounding the SKRect values to the next higher integer values.

Contains(Int32, Int32)

Determines whether the specified coordinates are inside this rectangle.

Contains(SKPointI)

Determines whether the specified point is inside this rectangle.

Contains(SKRectI)

Determines whether the specified rectangle is inside this rectangle.

Create(Int32, Int32, Int32, Int32)

Creates a new rectangle with the specified location and size.

Create(Int32, Int32)

Creates a new rectangle with the specified width and height.

Create(SKPointI, SKSizeI)

Creates a new rectangle with the specified location and size.

Create(SKSizeI)

Creates a new rectangle with the specified size.

Equals(Object)

Specifies whether this rectangle contains the same coordinates as the specified Object.

Equals(SKRectI)

Specifies whether this rectangle contains the same coordinates as the specified SKRectI.

Floor(SKRect, Boolean)

Converts the specified SKRect structure to a SKRectI structure by rounding the SKRect values to the closest lower integer values.

Floor(SKRect)

Converts the specified SKRect structure to a SKRectI structure by rounding the SKRect values to the closest lower integer values.

GetHashCode()

Calculates the hashcode for this rectangle.

Inflate(Int32, Int32)

Enlarges this SKRectI structure by the specified amount.

Inflate(SKRectI, Int32, Int32)

Creates and returns an enlarged copy of the specified SKRectI structure. The copy is enlarged by the specified amount and the original rectangle remains unmodified.

Inflate(SKSizeI)

Enlarges this SKRectI structure by the specified amount.

Intersect(SKRectI, SKRectI)

Returns a SKRectI structure that represents the intersection of two rectangles. If there is no intersection, and empty SKRectI is returned.

Intersect(SKRectI)

Replaces this SKRectI structure with the intersection of itself and the specified SKRectI structure.

IntersectsWith(SKRectI)

Determines if this rectangle intersects with another rectangle.

IntersectsWithInclusive(SKRectI)

Determines if this rectangle intersects with another rectangle.

Offset(Int32, Int32)

Translates the this rectangle by the specified amount.

Offset(SKPointI)

Translates the this rectangle by the specified amount.

Round(SKRect)

Converts the specified SKRect structure to a SKRectI structure by rounding the SKRect values to the nearest integer values.

ToString()

Converts this SKRectI to a human readable string.

Truncate(SKRect)

Converts the specified SKRect structure to a SKRectI structure by truncating the SKRect values.

Union(SKRectI, SKRectI)

Creates the smallest possible third rectangle that can contain both of two rectangles that form a union.

Union(SKRectI)

Replaces this SKRectI structure with the union of itself and the specified SKRectI structure.

Operators

Equality(SKRectI, SKRectI)

Tests whether two SKRectI structures have equal location and size.

Inequality(SKRectI, SKRectI)

Tests whether two SKRectI structures differ in location or size.

Applies to