Table of Contents

Method ConvertRect

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

ConvertRect(GraphicsUnit, GraphicsUnit, SizeD, RectD, GraphicsType)

Converts RectD value to other GraphicsUnit.

public static RectD ConvertRect(GraphicsUnit from, GraphicsUnit to, SizeD dpi, RectD value, GraphicsUnitConverter.GraphicsType type = GraphicsType.Undefined)

Parameters

from GraphicsUnit

GraphicsUnit of the value which is converted.

to GraphicsUnit

GraphicsUnit of the result.

dpi SizeD

Number of dots per inch.

value RectD

Value to convert.

type GraphicsUnitConverter.GraphicsType

Type of the graphics.

Returns

RectD