Show/Hide Toolbars

RiverSoftAVG Products Help

Navigation: Code Documentation > RSVclCommon > RSGraphics > Routines

CanvasRound(Double) Method

Scroll Prev Top Next More

Truncates the input double-precision floating point number to the TCanvasPixel precision. In FMX, there is no rounding, just conversion to Single. In VCL, the input number is truncated to the nearest integer.

noteNote

This function eases cross-library graphics code by using TCanvasXXX types and CanvasXXX functions. With these functions, types, and constants, you can write code that can be used in either a VCL or FMX application. It is recommended that you write the VCL code first as it is more limited that the FMX library.

Namespace: RSGraphics

Parameters

X

Type: Double

Return Value

Type: TExtCanvasPixel

RiverSoftAVG Products Help © 1996-2016 Thomas G. Grubb