Table of Contents

Property ScalePercent

Namespace
DocWright.Renderers.Imaging
Assembly
DocWright.Renderers.Imaging.dll

ScalePercent

Gets or sets a uniform scale as a percentage of natural size. Defaults to 100.

public int ScalePercent { get; set; }

Property Value

int

Remarks

Ignored when Width or Height is set — an explicit size is a more specific instruction than a percentage.

A percentage rather than a bare multiplier so that 150% is expressible while the value stays an integer, which is what keeps the resulting scale a ratio of two integers and the geometry free of floating point.

Exceptions

ArgumentOutOfRangeException

The value is not positive.