Texture |
public readonly struct TextureScaling : IEquatable<TextureScaling>, IImmutable
The TextureScaling type exposes the following members.
Name | Description | |
---|---|---|
![]() | TextureScaling | Initializes a new instance of the TextureScaling struct. |
Name | Description | |
---|---|---|
![]() ![]() | Default | Gets the default texture scaling. |
![]() | ScalingMode | Gets or sets the scaling mode, i.e. how the texture image should be scaled. |
![]() | SourceAspectRatioPreserving | Gets or sets whether the aspect ratio of the texture image should be preserved. |
![]() | X | If ScalingMode is Absolute, this value is the horizontal size of the texture (repeat length) in Points (1/72 inch). Otherwise, it is the horizontal scaling factor related either to the source image width or the destination image width. |
![]() | Y | If ScalingMode is Absolute, this value is the vertical size of the texture (repeat length) in Points (1/72 inch). Otherwise, it is the vertical scaling factor related either to the source image width or the destination image height. |
Name | Description | |
---|---|---|
![]() | Equals(Object) | (Overrides ValueTypeEquals(Object)) |
![]() | Equals(TextureScaling) | Compares this value with another value. |
![]() | GetHashCode | (Overrides ValueTypeGetHashCode) |
![]() | GetResultingSize | Gets the resulting size of the texture (for one repeat unit). |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object) |
![]() | ToString | Returns the fully qualified type name of this instance. (Inherited from ValueType) |
![]() | WithScalingMode | Returns a new TextureScaling instance with the ScalingMode value set to the provided value. |
![]() | WithSourceAspectRatioPreserving | Returns a new TextureScaling instance with the SourceAspectRatioPreserving value set to the provided value. |
![]() | WithX | Returns a new TextureScaling instance with the X value set to the provided value. |
![]() | WithY | Returns a new TextureScaling instance with the Y value set to the provided value. |
Name | Description | |
---|---|---|
![]() ![]() | Equality(TextureScaling, TextureScaling) | Implements the operator ==. |
![]() ![]() | Inequality(TextureScaling, TextureScaling) | Implements the operator !=. |