Прочетете на английски Редактиране

Споделяне чрез


PixelFormat.Equals Method

Definition

Determines whether the two PixelFormat objects are equal.

Overloads

Equals(Object)

Determines whether the specified object is equal to the current object.

Equals(PixelFormat)

Determines whether the pixel format equals the given PixelFormat.

Equals(PixelFormat, PixelFormat)

Determines whether the specified PixelFormat instances are considered equal.

Equals(Object)

Determines whether the specified object is equal to the current object.

C#
public override bool Equals(object obj);

Parameters

obj
Object

The Object to compare with the current Object.

Returns

true if the PixelFormat is equal to obj; otherwise, false.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

Equals(PixelFormat)

Determines whether the pixel format equals the given PixelFormat.

C#
public bool Equals(System.Windows.Media.PixelFormat pixelFormat);

Parameters

pixelFormat
PixelFormat

The pixel format to compare.

Returns

true if the pixel formats are equal; otherwise, false.

Implements

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

Equals(PixelFormat, PixelFormat)

Determines whether the specified PixelFormat instances are considered equal.

C#
public static bool Equals(System.Windows.Media.PixelFormat left, System.Windows.Media.PixelFormat right);

Parameters

left
PixelFormat

The first PixelFormat objects to compare for equality.

right
PixelFormat

The second PixelFormat object to compare for equality.

Returns

true if the two parameters are equal; otherwise, false.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10