OpenExrWindows Class
The immutable windows of an OpenEXR file (its dataWindow and displayWindow attributes), in the pixel coordinates of the file: the corners of each window, both inclusive.
public sealed class OpenExrWindows : IEquatable<OpenExrWindows>Remarks
The display window is the area the image is meant to show, and the data window the pixels the file stores. The decoded image covers one of them (OpenExrDecodingOptions.WindowMode): its pixel (0, 0) is OpenExrWindows.DisplayWindowMin, or OpenExrWindows.DataWindowMin with OpenExrWindowMode.DataWindow.
- Implements
Constructors
| Name | Description |
|---|---|
| OpenExrWindows(Point, Point, Point, Point) | Initializes a new instance of the OpenExrWindows class. |
OpenExrWindows(Point, Point, Point, Point)
OpenExrWindows.csInitializes a new instance of the OpenExrWindows class.
public OpenExrWindows(Point dataWindowMin, Point dataWindowMax, Point displayWindowMin, Point displayWindowMax)Parameters
dataWindowMinPoint- The top-left pixel of the data window.
dataWindowMaxPoint- The bottom-right pixel of the data window.
displayWindowMinPoint- The top-left pixel of the display window.
displayWindowMaxPoint- The bottom-right pixel of the display window.
Exceptions
ArgumentException- A window is empty: its bottom-right pixel is above or to the left of its top-left pixel.
Properties
| Name | Description |
|---|---|
| DataWindowMax | Gets the bottom-right pixel of the data window (inclusive). |
| DataWindowMin | Gets the top-left pixel of the data window. |
| DisplayWindowMax | Gets the bottom-right pixel of the display window (inclusive). |
| DisplayWindowMin | Gets the top-left pixel of the display window. |
DataWindowMax
OpenExrWindows.csDataWindowMin
OpenExrWindows.csDisplayWindowMax
OpenExrWindows.csDisplayWindowMin
OpenExrWindows.csMethods
| Name | Description |
|---|---|
| Equals(OpenExrWindows?) | Indicates whether the current object is equal to another object of the same type. |
| Equals(object?) | Determines whether the specified object is equal to the current object. |
| GetHashCode() | Serves as the default hash function. |
| ToString() | Returns a string that represents the current object. |
Equals overloads
Equals(OpenExrWindows?)
OpenExrWindows.csIndicates whether the current object is equal to another object of the same type.
public bool Equals(OpenExrWindows? other)Parameters
otherOpenExrWindows?- An object to compare with this object.
Returns
bool true if the current object is equal to the other parameter; otherwise, false.