Table of Contents

Class ScaledSize

Namespace
DrawnUi.Draw
Assembly
DrawnUi.Maui.dll
public class ScaledSize
Inheritance
ScaledSize
Inherited Members
Extension Methods

Constructors

ScaledSize()

public ScaledSize()

Fields

_scale

public float _scale

Field Value

float

Properties

Default

public static ScaledSize Default { get; }

Property Value

ScaledSize

HeightCut

public bool HeightCut { get; set; }

Property Value

bool

IsEmpty

public bool IsEmpty { get; }

Property Value

bool

Pixels

public SKSize Pixels { get; set; }

Property Value

SKSize

Scale

public float Scale { get; set; }

Property Value

float

Units

public SKSize Units { get; set; }

Property Value

SKSize

WidthCut

public bool WidthCut { get; set; }

Property Value

bool

Methods

Clone()

public ScaledSize Clone()

Returns

ScaledSize

CreateEmpty(float)

public static ScaledSize CreateEmpty(float scale)

Parameters

scale float

Returns

ScaledSize

FromPixels(SKSize, float)

public static ScaledSize FromPixels(SKSize size, float scale)

Parameters

size SKSize
scale float

Returns

ScaledSize

FromPixels(float, float, bool, bool, float)

public static ScaledSize FromPixels(float width, float height, bool widthCut, bool heighCut, float scale)

Parameters

width float
height float
widthCut bool
heighCut bool
scale float

Returns

ScaledSize

FromPixels(float, float, float)

public static ScaledSize FromPixels(float width, float height, float scale)

Parameters

width float
height float
scale float

Returns

ScaledSize

FromUnits(float, float, float)

public static ScaledSize FromUnits(float width, float height, float scale)

Parameters

width float
height float
scale float

Returns

ScaledSize

SnapToPixel(double, double)

public static float SnapToPixel(double point, double scale)

Parameters

point double
scale double

Returns

float

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)

Parameters

widthCut bool
heightCut bool

Returns

ScaledSize