TRpgImage.applyImageColors

TURBU

TRpgImage.applyImageColors

 

Class

TRpgImage

 

Syntax

procedure applyImageColors(r, g, b, sat: byte);

 

Description

This method changes the image's shading.  The r, g, and b parameters affect red, green and blue color balance, and accept percentage values from 0-200.  Any number higher than 200 will be treated as a 200.  The sat parameter affects color saturation of the overall image, from 0 (completely gray) to 200 (exaggeratedly vibrant colors).

The values entered in this routine will be gradually changed over the period of time set in the object's timer property.  If timer is currently at 0, or has not yet been set, the changes will take place immediately.

NOTE: This routine is not yet fully implemented.  The sat parameter currently does nothing, due to technical limitations.  Saturation changes will be implemented during the planned graphics engine rewrite.

This help file was created with the free trial version of HelpScribble.