Home VDIVDI Raster functionsRaster functions VDI functions listVDI functions list

7.12 TC-VDI functions

This library contains a multitude of functions to manage true color on the MATRIX graphic boards. In all, the following routines are available in TC-VDI 0.7:

vq_calibrate Tests colour calibration
vq_colors Gets a palette sequence
vq_pixcol Gets pixel
vq_pixrgb Gets pixel rgb color
vrf_rgb Gets fill color values
vrl_rgb Gets line color values
vrt_rgb Gets text color values
vrun_parallel Parallelogram color runs
vrun_rect Rectangle color runs
vrun_triangle Triangle color runs
vs_calibrate Sets colour calibration
vs_colors Sets a palette sequence
vs_pixcol Sets pixel through soft palette
vs_pixrgb Sets pixel rgb color
vsf_rgb Sets fill color values
vsl_rgb Sets line color values
vst_rgb Sets text color values

See also: MATRIX XBIOS extension

7.12.1 vq_colors

Name: »Inquire colors« - Obtain the RGB values of a colour palette.
 
Opcode: 65
 
Syntax: void vq_colors ( int16_t handle, int16_t from, int16_t to, int16_t set_flag, int16_t *rgb_table );
 
Description: The call vq_colors obtains the RGB values starting from the colour index from to the colour index to. The resulting values are stored in rgb_table.
 
Return value: The function does not return a result.
 
Availability: Available only with MATRIX drivers in TC mode.
 
Group: TC-VDI functions
 
See also: Binding   vs_colors
 

7.12.2 Bindings for vq_colors

C: void vq_colors ( int16_t handle, int16_t from, int16t_to, int16_t set_flag, int16_t *rgb_table );
 
Binding:
 
void vq_colors (int16_t handle, int16_t from, int16_t to, int16_t set_flag,
                int16_t *rgb_table)
{
   intin[0]    = from;
   intin[1]    = to;
   intin[2]    = set_flag;
   intin[3..4] = rgb_table;

   contrl[0] = 65;
   contrl[1] = 0;
   contrl[3] = 5;
   contrl[6] = handle;

   vdi ();
}
GEM-Arrays:
 

Address Element Contents
contrl contrl[0] 65 # Function Opcode
contrl+2 contrl[1] 0 # Entry in ptsin
contrl+4 contrl[2] 0 # Entry in ptsout
contrl+6 contrl[3] 5 # Entry in intin
contrl+8 contrl[4] 0 # Entry in intout
contrl+12 contrl[6] handle
intin intin[0] from
intin+2 intin[1] to
intin+4 intin[2] set_flag
intin+6 intin[3..4] rgb_table

7.12.3 vq_pixcol

Name: »Inquire pixel colour index« - Obtain the index of a pixel.
 
Opcode: 58
 
Syntax: void vq_pixcol ( int16_t handle, int16_t x, int16_t y, int16_t *phys_ix, int16_t *vdi_ix );
 
Description: The call vq_pixcol obtains the physical and VDI indexes of the pixel at the given coordinates. The following apply:
 
Parameter Meaning
   
handle Workstation identifier
x X-coordinate
y Y-coordinate
phys_ix Color index
vdi_ix VDI color index
Return value: The function does not return a result.
 
Availability: Available only with MATRIX drivers in TC mode.
 
Group: TC-VDI functions
 
See also: Binding   vs_pixcol
 

7.12.4 Bindings for vq_pixcol

C: void vq_pixcol ( int16_t handle, int16_t x, int16t_y, int16_t *phys_ix, int16_t *vdi_ix );
 
Binding:
 
void vq_pixcol (int16_t handle, int16_t x, int16_t y, int16_t *phys_ix, int16_t *vdi_ix)
{
   ptsin[0] = x;
   ptsin[1] = y;

   contrl[0] = 58;
   contrl[1] = 1;
   contrl[3] = 0;
   contrl[6] = handle;

   vdi ();

   *phys_ix = intout[0];
   *vdi_ix  = intout[1];
}
GEM-Arrays:
 

Address Element Contents
contrl contrl[0] 58 # Function Opcode
contrl+2 contrl[1] 1 # Entry in ptsin
contrl+4 contrl[2] 0 # Entry in ptsout
contrl+6 contrl[3] 0 # Entry in intin
contrl+8 contrl[4] 2 # Entry in intout
contrl+12 contrl[6] handle
ptsin ptsin[0] x
ptsin+2 ptsin[1] y
intout intout[0] phys_ix
intout+2 intout[1] vdi_ix

7.12.5 vq_pixrgb

Name: »Inquire pixel colour representation« - Obtain the RGB intensities of a pixel.
 
Opcode: 60
 
Syntax: void vq_pixrgb ( int16_t handle, int16_t x, int16_t y, int16_t *rgb );
 
Description: The call vq_pixrgb obtains the RGB colour intensities of the pixel at the given coordinates. The following apply:
 
Parameter Meaning
   
handle Workstation identifier
x X-coordinate
y Y-coordinate
rgb[0] Red colour intensity (in tenths of a percent, 0-1000)
rgb[1] Green colour intensity (in tenths of a percent, 0-1000)
rgb[2] Blue colour intensity (in tenths of a percent, 0-1000)
Return value: The function does not return a result.
 
Availability: Available only with MATRIX drivers in TC mode.
 
Group: TC-VDI functions
 
See also: Binding   vs_pixrgb
 

7.12.6 Bindings for vq_pixrgb

C: void vq_pixrgb ( int16_t handle, int16_t x, int16t_y, int16_t *rgb );
 
Binding:
 
void vq_pixrgb (int16_t handle, int16_t x, int16_t y, int16_t *rgb)
{
   ptsin[0] = x;
   ptsin[1] = y;

   contrl[0] = 60;
   contrl[1] = 1;
   contrl[3] = 0;
   contrl[6] = handle;

   vdi ();

   rgb[0] = intout[0];
   rgb[1] = intout[1];
   rgb[2] = intout[2];
}
GEM-Arrays:
 

Address Element Contents
contrl contrl[0] 60 # Function Opcode
contrl+2 contrl[1] 1 # Entry in ptsin
contrl+4 contrl[2] 0 # Entry in ptsout
contrl+6 contrl[3] 0 # Entry in intin
contrl+8 contrl[4] 3 # Entry in intout
contrl+12 contrl[6] handle
ptsin ptsin[0] x
ptsin+2 ptsin[1] y
intout intout[0..2] rgb[0..2]

7.12.7 vrf_rgb

Name: »Inquire fill colour representation« - Obtain the RGB intensities for the colour with which a 2-dimensional graphic object is filled.
 
Opcode: 54
 
Syntax: void vrf_rgb ( int16_t handle, int16_t *rgb );
 
Description: The call vrf_rgb obtains the RGB colour intensities of the fill colour of 2-dimensional graphic object. The following apply:
 
Parameter Meaning
   
handle Workstation identifier
rgb[0] Red colour intensity (in tenths of a percent, 0-1000)
rgb[1] Green colour intensity (in tenths of a percent, 0-1000)
rgb[2] Blue colour intensity (in tenths of a percent, 0-1000)
Return value: The function does not return a result.
 
Availability: Available only with MATRIX drivers in TC mode.
 
Group: TC-VDI functions
 
See also: Binding   vrl_rgb   vrt_rgb   vsf_rgb   vsl_rgb   vst_rgb
 

7.12.8 Bindings for vrf_rgb

C: void vrf_rgb ( int16_t handle, int16_t *rgb );
 
Binding:
 
void vrf_rgb (int16_t handle, int16_t *rgb)
{
   contrl[0] = 54;
   contrl[1] = 0;
   contrl[3] = 0;
   contrl[6] = handle;

   vdi ();

   rgb[0] = intout[0];
   rgb[1] = intout[1];
   rgb[2] = intout[2];
}
GEM-Arrays:
 

Address Element Contents
contrl contrl[0] 54 # Function Opcode
contrl+2 contrl[1] 0 # Entry in ptsin
contrl+4 contrl[2] 0 # Entry in ptsout
contrl+6 contrl[3] 0 # Entry in intin
contrl+8 contrl[4] 3 # Entry in intout
contrl+12 contrl[6] handle
intout intout[0..2] rgb[0..2]

7.12.9 vrl_rgb

Name: »Inquire polyline colour representation« - Obtain the RGB intensities for the line colour.
 
Opcode: 56
 
Syntax: void vrl_rgb ( int16_t handle, int16_t *rgb );
 
Description: The call vrl_rgb obtains the RGB colour intensities of the line colour. The following apply:
 
Parameter Meaning
   
handle Workstation identifier
rgb[0] Red colour intensity (in tenths of a percent, 0-1000)
rgb[1] Green colour intensity (in tenths of a percent, 0-1000)
rgb[2] Blue colour intensity (in tenths of a percent, 0-1000)
Return value: The function does not return a result.
 
Availability: Available only with MATRIX drivers in TC mode.
 
Group: TC-VDI functions
 
See also: Binding   vrf_rgb   vrt_rgb   vsf_rgb   vsl_rgb   vst_rgb
 

7.12.10 Bindings for vrl_rgb

C: void vrl_rgb ( int16_t handle, int16_t *rgb );
 
Binding:
 
void vrl_rgb (int16_t handle, int16_t *rgb)
{
   contrl[0] = 56;
   contrl[1] = 0;
   contrl[3] = 0;
   contrl[6] = handle;

   vdi ();

   rgb[0] = intout[0];
   rgb[1] = intout[1];
   rgb[2] = intout[2];
}
GEM-Arrays:
 

Address Element Contents
contrl contrl[0] 56 # Function Opcode
contrl+2 contrl[1] 0 # Entry in ptsin
contrl+4 contrl[2] 0 # Entry in ptsout
contrl+6 contrl[3] 0 # Entry in intin
contrl+8 contrl[4] 3 # Entry in intout
contrl+12 contrl[6] handle
intout intout[0..2] rgb[0..2]

7.12.11 vrt_rgb

Name: »Inquire graphic text colour representation« - Obtain the RGB intensities of the text output.
 
Opcode: 55
 
Syntax: void vrt_rgb ( int16_t handle, int16_t *rgb );
 
Description: The call vrt_rgb obtains the RGB colour intensities of the graphic text output. The following apply:
 
Parameter Meaning
   
handle Workstation identifier
rgb[0] Red colour intensity (in tenths of a percent, 0-1000)
rgb[1] Green colour intensity (in tenths of a percent, 0-1000)
rgb[2] Blue colour intensity (in tenths of a percent, 0-1000)
Return value: The function does not return a result.
 
Availability: Available only with MATRIX drivers in TC mode.
 
Group: TC-VDI functions
 
See also: Binding   vrf_rgb   vrl_rgb   vsf_rgb   vsl_rgb   vst_rgb
 

7.12.12 Bindings for vrt_rgb

C: void vrt_rgb ( int16_t handle, int16_t *rgb );
 
Binding:
 
void vrt_rgb (int16_t handle, int16_t *rgb)
{
   contrl[0] = 55;
   contrl[1] = 0;
   contrl[3] = 0;
   contrl[6] = handle;

   vdi ();

   rgb[0] = intout[0];
   rgb[1] = intout[1];
   rgb[2] = intout[2];
}
GEM-Arrays:
 

Address Element Contents
contrl contrl[0] 55 # Function Opcode
contrl+2 contrl[1] 0 # Entry in ptsin
contrl+4 contrl[2] 0 # Entry in ptsout
contrl+6 contrl[3] 0 # Entry in intin
contrl+8 contrl[4] 3 # Entry in intout
contrl+12 contrl[6] handle
intout intout[0..2] rgb[0..2]

7.12.13 vrun_parallel

Name: »Parallelogram color run« - Parallelogram colour run.
 
Opcode: 62
 
Syntax: void vrun_parallel ( int16_t handle, int16_t *pts, int16_t *rgbs );
 
Description: To define the parallelogram only three points are required. The following apply:
 
Parameter Meaning
   
handle Workstation identifier
pts[0] X-coordinate, and
pts[1] Y-coordinate of a parallelogram corner point
pts[2] X-coordinate, and
pts[3] Y-coordinate of a second corner point
pts[4] X-coordinate, and
pts[5] Y-coordinate of a third corner point
rgbs RGB values, one for each corner
Return value: The function does not return a result.
 
Availability: Available only with MATRIX drivers in TC mode.
 
Group: TC-VDI functions
 
See also: Binding   vrun_rect   vrun_triangle
 

7.12.14 Bindings for vrun_parallel

C: void vrun_parallel ( int16_t handle, int16_t *pts, int16_t *rgbs );
 
Binding:
 
void vrun_parallel (int16_t handle, int16_t *pts, int16_t *rgbs)
{
   ptsin[0..5] = pts[0..5];

   intin[0..11] = rgbs[0..11];

   contrl[0] = 62;
   contrl[1] = 3;
   contrl[3] = 12;
   contrl[6] = handle;

   vdi ();
}
GEM-Arrays:
 

Address Element Contents
contrl contrl[0] 62 # Function Opcode
contrl+2 contrl[1] 3 # entry in ptsin
contrl+4 contrl[2] 0 # entry in ptsout
contrl+6 contrl[3] 12 # entry in intin
contrl+8 contrl[4] 0 # entry in intout
contrl+12 contrl[6] handle
intin intin[0..11] rgbs[0..11]
ptsin ptsin[0..5] pts[0..5]

7.12.15 vrun_rect

Name: »Rectangle color run« - Rectangle colour run.
 
Opcode: 61
 
Syntax: void vrun_rect ( int16_t handle, int16_t *pts, int16_t *rgbs );
 
Description: The following apply:
 
Parameter Meaning
   
handle Workstation identifier
pts[0] X-coordinate, and
pts[1] Y-coordinate of a rectangle corner point
pts[2] X-coordinate, and
pts[3] Y-coordinate of the diagonally opposite corner point
rgbs RGB values, one for each corner
Return value: The function does not return a result.
 
Availability: Available only with MATRIX drivers in TC mode.
 
Group: TC-VDI functions
 
See also: Binding   vrun_parallel   vrun_triangle
 

7.12.16 Bindings for vrun_rect

C: void vrun_rect ( int16_t handle, int16_t *pts, int16_t *rgbs );
 
Binding:
 
void vrun_rect (int16_t handle, int16_t *pts, int16_t *rgbs)
{
   ptsin[0..3] = pts[0..3];

   intin[0..11] = rgbs[0..11];

   contrl[0] = 61;
   contrl[1] = 2;
   contrl[3] = 12;
   contrl[6] = handle;

   vdi ();
}
GEM-Arrays:
 

Address Element Contents
contrl contrl[0] 61 # Function Opcode
contrl+2 contrl[1] 2 # entry in ptsin
contrl+4 contrl[2] 0 # entry in ptsout
contrl+6 contrl[3] 12 # entry in intin
contrl+8 contrl[4] 0 # entry in intout
contrl+12 contrl[6] handle
intin intin[0..11] rgbs[0..11]
ptsin ptsin[0..3] pts[0..3]

7.12.17 vrun_triangle

Name: »Triangle color run« - Triangle colour run.
 
Opcode: 63
 
Syntax: void vrun_triangle ( int16_t handle, int16_t *pts, int16_t *rgbs );
 
Description: The following apply:
 
Parameter Meaning
   
handle Workstation identifier
pts[0] X-coordinate, and
pts[1] Y-coordinate of a triangle corner point
pts[2] X-coordinate, and
pts[3] Y-coordinate of the second corner point
pts[4] X-coordinate, and
pts[5] Y-coordinate of the third corner point
rgbs RGB values, one for each corner point
Return value: The function does not return a result.
 
Availability: Available only with MATRIX drivers in TC mode.
 
Group: TC-VDI functions
 
See also: Binding   vrun_parallel   vrun_rect
 

7.12.18 Bindings for vrun_triangle

C: void vrun_triangle ( int16_t handle, int16_t *pts, int16_t *rgbs );
 
Binding:
 
void vrun_triangle (int16_t handle, int16_t *pts, int16_t *rgbs)
{
   ptsin[0..5] = pts[0..5];

   intin[0..8] = rgbs[0..8];

   contrl[0] = 63;
   contrl[1] = 3;
   contrl[3] = 9;
   contrl[6] = handle;

   vdi ();
}
GEM-Arrays:
 

Address Element Contents
contrl contrl[0] 63 # Function Opcode
contrl+2 contrl[1] 3 # entry in ptsin
contrl+4 contrl[2] 0 # entry in ptsout
contrl+6 contrl[3] 9 # entry in intin
contrl+8 contrl[4] 0 # entry in intout
contrl+12 contrl[6] handle
intin intin[0..8] rgbs[0..8]
ptsin ptsin[0..5] pts[0..5]

7.12.19 vs_colors

Name: »Set colors« - Set the RGB value of a colour.
 
Opcode: 64
 
Syntax: void vs_colors ( int16_t handle, int16_t from, int16_t to, int16_t *rgb_table );
 
Description: The call vs_colors sets the RGB values of the palette starting from the palette index from to the palette index to. The colour values are stored in rgb_table.
 
Return value: The function does not return a result.
 
Availability: Available only with MATRIX drivers in TC mode.
 
Group: TC-VDI functions
 
See also: Binding   vq_colors
 

7.12.20 Bindings for vs_colors

C: void vs_colors ( int16_t handle, int16_t from, int16_t to, int16_t *rgb_table );
 
Binding:
 
void vs_colors (int16_t handle, int16_t from, int16_t to, int16_t *rgb_table)
{
   intin[0]    = from;
   intin[1]    = to;
   intin[2..3] = rgb_table;

   contrl[0] = 64;
   contrl[1] = 0;
   contrl[3] = 4;
   contrl[6] = handle;

   vdi ();
}
GEM-Arrays:
 

Address Element Contents
contrl contrl[0] 64 # Function Opcode
contrl+2 contrl[1] 0 # entry in ptsin
contrl+4 contrl[2] 0 # entry in ptsout
contrl+6 contrl[3] 4 # entry in intin
contrl+8 contrl[4] 0 # entry in intout
contrl+12 contrl[6] handle
intin intin[0] from
intin+2 intin[1] to
intin+4 intin[2..3] rgb_table

7.12.21 vs_pixcol

Name: »Set pixel colour index« - Set the colour index of a pixel.
 
Opcode: 57
 
Syntax: void vs_pixcol ( int16_t handle, int16_t x, int16_t y, int16_t vdi_ix );
 
Description: The call vs_pixcol sets the VDI colour index for the pixel at the given coordinates.
 
Parameter Meaning
   
handle Workstation identifier
x X-coordinate
y Y-coordinate
vdi_ix Requested VDI color index
Return value: The function does not return a result.
 
Availability: Available only with MATRIX drivers in TC mode.
 
Group: TC-VDI functions
 
See also: Binding   vq_pixcol
 

7.12.22 Bindings for vs_pixcol

C: void vs_pixcol ( int16_t handle, int16_t x, int16_t y, int16_t vdi_ix );
 
Binding:
 
void vs_pixcol (int16_t handle, int16_t x, int16_t y, int16_t vdi_ix)
{
   ptsin[0] = x;
   ptsin[1] = y;

   intin[0] = vdi_ix;

   contrl[0] = 57;
   contrl[1] = 1;
   contrl[3] = 1;
   contrl[6] = handle;

   vdi ();
}
GEM-Arrays:
 

Address Element Contents
contrl contrl[0] 57 # Function Opcode
contrl+2 contrl[1] 1 # entry in ptsin
contrl+4 contrl[2] 0 # entry in ptsout
contrl+6 contrl[3] 1 # entry in intin
contrl+8 contrl[4] 0 # entry in intout
contrl+12 contrl[6] handle
intin intin[0] vdi_ix
ptsin ptsin[0] x
ptsin+2 ptsin[1] y

7.12.23 vs_pixrgb

Name: »Set pixel RGB colour values« - Set the colour of a pixel.
 
Opcode: 59
 
Syntax: void vs_pixrgb ( int16_t handle, int16_t x, int16_t y, int16_t *rgb );
 
Description: The call vs_pixrgb sets the RGB colour for the pixel at the given coordinates.
 
Parameter Meaning
   
handle Workstation identifier
x X-coordinate
y Y-coordinate
rgb Requested pixel RGB color values
Return value: The function does not return a result.
 
Availability: Available only with MATRIX drivers in TC mode.
 
Group: TC-VDI functions
 
See also: Binding   vq_pixrgb
 

7.12.24 Bindings for vs_pixrgb

C: void vs_pixrgb ( int16_t handle, int16_t x, int16_t y, int16_t *rgb );
 
Binding:
 
void vs_pixrgb (int16_t handle, int16_t x, int16_t y, int16_t *rgb)
{
   ptsin[0] = x;
   ptsin[1] = y;

   intin[0] = *rgb++;
   intin[1] = *rgb++;
   intin[2] = *rgb;

   contrl[0] = 59;
   contrl[1] = 1;
   contrl[3] = 3;
   contrl[6] = handle;

   vdi ();
}
GEM-Arrays:
 

Address Element Contents
contrl contrl[0] 59 # Function Opcode
contrl+2 contrl[1] 1 # entry in ptsin
contrl+4 contrl[2] 0 # entry in ptsout
contrl+6 contrl[3] 3 # entry in intin
contrl+8 contrl[4] 0 # entry in intout
contrl+12 contrl[6] handle
intin intin[0] rgb[0]
intin+2 intin[1] rgb[1]
intin+4 intin[2] rgb[2]
ptsin ptsin[0] x
ptsin+2 ptsin[1] y

7.12.25 vsf_rgb

Name: »Set fill RGB colour values« - Set the colour with which a 2-dimensional graphic object is to be filled.
 
Opcode: 51
 
Syntax: void vsf_rgb ( int16_t handle, int16_t *rgb );
 
Description: The call vsf_rgb sets the fill RGB colour for 2-dimensional graphic objects.
 
Parameter Meaning
   
handle Workstation identifier
rgb Requested fill RGB color values
Return value: The function does not return a result.
 
Availability: Available only with MATRIX drivers in TC mode.
 
Group: TC-VDI functions
 
See also: Binding   vrf_rgb   vrl_rgb   vrt_rgb   vsl_rgb   vst_rgb
 

7.12.26 Bindings for vsf_rgb

C: void vsf_rgb ( int16_t handle, int16_t *rgb );
 
Binding:
 
void vsf_rgb (int16_t handle, int16_t *rgb)
{
   intin[0] = *rgb++;
   intin[1] = *rgb++;
   intin[2] = *rgb;

   contrl[0] = 51;
   contrl[1] = 0;
   contrl[3] = 3;
   contrl[6] = handle;

   vdi ();
}
GEM-Arrays:
 

Address Element Contents
contrl contrl[0] 51 # Function Opcode
contrl+2 contrl[1] 0 # entry in ptsin
contrl+4 contrl[2] 0 # entry in ptsout
contrl+6 contrl[3] 3 # entry in intin
contrl+8 contrl[4] 0 # entry in intout
contrl+12 contrl[6] handle
intin intin[0] rgb[0]
intin+2 intin[1] rgb[1]
intin+4 intin[2] rgb[2]

7.12.27 vsl_rgb

Name: »Set polyline RGB colour values« - Set the line colour.
 
Opcode: 53
 
Syntax: void vsl_rgb ( int16_t handle, int16_t *rgb );
 
Description: The call vsl_rgb sets the RGB colour for lines.
 
Parameter Meaning
   
handle Workstation identifier
rgb Requested line RGB color values
Return value: The function does not return a result.
 
Availability: Available only with MATRIX drivers in TC mode.
 
Group: TC-VDI functions
 
See also: Binding   vrf_rgb   vrl_rgb   vrt_rgb   vsf_rgb   vst_rgb
 

7.12.28 Bindings for vsl_rgb

C: void vsl_rgb ( int16_t handle, int16_t *rgb );
 
Binding:
 
void vsl_rgb (int16_t handle, int16_t *rgb)
{
   intin[0] = *rgb++;
   intin[1] = *rgb++;
   intin[2] = *rgb;

   contrl[0] = 53;
   contrl[1] = 0;
   contrl[3] = 3;
   contrl[6] = handle;

   vdi ();
}
GEM-Arrays:
 

Address Element Contents
contrl contrl[0] 53 # Function Opcode
contrl+2 contrl[1] 0 # entry in ptsin
contrl+4 contrl[2] 0 # entry in ptsout
contrl+6 contrl[3] 3 # entry in intin
contrl+8 contrl[4] 0 # entry in intout
contrl+12 contrl[6] handle
intin intin[0] rgb[0]
intin+2 intin[1] rgb[1]
intin+4 intin[2] rgb[2]

7.12.29 vst_rgb

Name: »Set graphic text RGB colour values« - Set the colour of the text output.
 
Opcode: 52
 
Syntax: void vst_rgb ( int16_t handle, int16_t *rgb );
 
Description: The call vst_rgb sets the RGB colour values for subsequent graphic text operations.
 
Parameter Meaning
   
handle Workstation identifier
rgb Requested text RGB color values
Return value: The function does not return a result.
 
Availability: Available only with MATRIX drivers in TC mode.
 
Group: TC-VDI functions
 
See also: Binding   vrf_rgb   vrl_rgb   vrt_rgb   vsf_rgb   vsl_rgb
 

7.12.30 Bindings for vst_rgb

C: void vst_rgb ( int16_t handle, int16_t *rgb );
 
Binding:
 
void vst_rgb (int16_t handle, int16_t *rgb)
{
   intin[0] = *rgb++;
   intin[1] = *rgb++;
   intin[2] = *rgb;

   contrl[0] = 52;
   contrl[1] = 0;
   contrl[3] = 3;
   contrl[6] = handle;

   vdi ();
}
GEM-Arrays:
 

Address Element Contents
contrl contrl[0] 52 # Function Opcode
contrl+2 contrl[1] 0 # entry in ptsin
contrl+4 contrl[2] 0 # entry in ptsout
contrl+6 contrl[3] 3 # entry in intin
contrl+8 contrl[4] 0 # entry in intout
contrl+12 contrl[6] handle
intin intin[0] rgb[0]
intin+2 intin[1] rgb[1]
intin+4 intin[2] rgb[2]

Home VDIVDI Raster functionsRaster functions VDI functions listVDI functions list