Class ScaledSize
public class ScaledSize
- Inheritance
-
ScaledSize
- Inherited Members
- Extension Methods
Constructors
ScaledSize()
public ScaledSize()
Fields
_scale
public float _scale
Field Value
Properties
Default
public static ScaledSize Default { get; }
Property Value
HeightCut
public bool HeightCut { get; set; }
Property Value
IsEmpty
public bool IsEmpty { get; }
Property Value
Pixels
public SKSize Pixels { get; set; }
Property Value
Scale
public float Scale { get; set; }
Property Value
Units
public SKSize Units { get; set; }
Property Value
WidthCut
public bool WidthCut { get; set; }
Property Value
Methods
Clone()
public ScaledSize Clone()
Returns
CreateEmpty(float)
public static ScaledSize CreateEmpty(float scale)
Parameters
scalefloat
Returns
FromPixels(SKSize, float)
public static ScaledSize FromPixels(SKSize size, float scale)
Parameters
Returns
FromPixels(float, float, bool, bool, float)
public static ScaledSize FromPixels(float width, float height, bool widthCut, bool heighCut, float scale)
Parameters
Returns
FromPixels(float, float, float)
public static ScaledSize FromPixels(float width, float height, float scale)
Parameters
Returns
FromUnits(float, float, float)
public static ScaledSize FromUnits(float width, float height, float scale)
Parameters
Returns
SnapToPixel(double, double)
public static float SnapToPixel(double point, double scale)
Parameters
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
WithCut(bool, bool)
public ScaledSize WithCut(bool widthCut, bool heightCut)