formZ SDK | 5.0 API Reference | System | Data Type

fz_type_get_rgb_float

Description

This function performs the following data type conversions:
Variant Type Conversion
fz_xyz_td x value copied to red, y value copied to green, z value copied to blue, no data lost.
fz_xyzw_td x value copied to red, y value copied to green, z value copied to blue, w lost.
fz_xyz_float_td x value copied to red, y value copied to green, z value copied to blue, no data lost.
fz_rgb_uchar_td values divided by 255.0, no data lost.
fz_rgb_ushort_td values divided by 65535.0, no data lost.

Plugin Prototype

fzrt_error_td fz_type_get_rgb_float(

fz_type_ptr

type,

fz_rgb_float_td *

frgb )

Parameters

type [Input]

A pointer to a variant

frgb [Result]

A pointer to a color to be filled. Must be allocated by the caller.

Availability

5.0.0.0

See Also

, , ,

Function Set

fz_type_fset


Defined in

fz_type_api.h