Show/Hide Toolbars

RiverSoftAVG Products Help

Navigation: Code Documentation > RSVclCommon > RSGraphics > Routines

CanvasTrunc(Double) Method

Scroll Prev Top Next More

Rounds 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 rounded to an integer.


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



Type: Double

Return Value

Type: TExtCanvasPixel

RiverSoftAVG Products Help © 1996-2016 Thomas G. Grubb