Click or drag to resize

TextureScaling Structure

Designates how and how much a texture image should be scaled.
Inheritance Hierarchy
SystemObject
  SystemValueType
    Altaxo.DrawingTextureScaling

Namespace: Altaxo.Drawing
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public readonly struct TextureScaling : IEquatable<TextureScaling>, 
	IImmutable

The TextureScaling type exposes the following members.

Constructors
 NameDescription
Public methodTextureScaling Initializes a new instance of the TextureScaling struct.
Top
Properties
 NameDescription
Public propertyStatic memberDefaultGets the default texture scaling.
Public propertyScalingModeGets or sets the scaling mode, i.e. how the texture image should be scaled.
Public propertySourceAspectRatioPreservingGets or sets whether the aspect ratio of the texture image should be preserved.
Public propertyXIf 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.
Public propertyYIf 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.
Top
Methods
 NameDescription
Public methodEquals(Object)
(Overrides ValueTypeEquals(Object))
Public methodEquals(TextureScaling)Compares this value with another value.
Public methodGetHashCode
(Overrides ValueTypeGetHashCode)
Public methodGetResultingSizeGets the resulting size of the texture (for one repeat unit).
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToStringReturns the fully qualified type name of this instance.
(Inherited from ValueType)
Public methodWithScalingModeReturns a new TextureScaling instance with the ScalingMode value set to the provided value.
Public methodWithSourceAspectRatioPreservingReturns a new TextureScaling instance with the SourceAspectRatioPreserving value set to the provided value.
Public methodWithXReturns a new TextureScaling instance with the X value set to the provided value.
Public methodWithYReturns a new TextureScaling instance with the Y value set to the provided value.
Top
Operators
 NameDescription
Public operatorStatic memberEquality(TextureScaling, TextureScaling)Implements the operator ==.
Public operatorStatic memberInequality(TextureScaling, TextureScaling)Implements the operator !=.
Top
See Also