guides:programming:programmers_reference_manual:transparent_property_animate

TRANSPARENT property (Animate)

Indicates that the animation should be displayed using a transparent background.

The TRANSPARENT property is a Boolean value of "0" (FALSE$) or "1" (TRUE$). When set to TRUE$ the top-left pixel in the animation frame is assumed to be the AVI file background color - any pixels matching this color are instead painted the same color as the control's BACKCOLOR property.

DevelopmentRuntimeIndexedScaledSynthetic
Get/SetGet/SetNoNoNo

N/A

 
// Example:

   //

   // Open an AVI file called "FileCopyXP.avi" and begin playing

   // immediately with a transparent background

   

   $Insert Logical

   

   ObjxArray =        @Window : ".ANI_COPYING"

   PropArray =        "AUTOPLAY"

   DataArray =        TRUE$

 

   ObjxArray := @Rm : @Window : ".ANI_COPYING"

   PropArray := @Rm : "BACKCOLOR"

   DataArray := @Rm : -1 ; * // transparent

   

   ObjxArray := @Rm : @Window : ".ANI_COPYING"

   PropArray := @Rm : "TRANSPARENT"

   DataArray := @Rm : TRUE$

   

   ObjxArray := @Rm : @Window : ".ANI_COPYING"

   PropArray := @Rm : "CLIPNAME"

   DataArray := @Rm : ".\avi\filecopyxp.avi"

   

   Call Set_Property_Only( ObjxArray, PropArray, DataArray )
 
 
 

N/A

  • guides/programming/programmers_reference_manual/transparent_property_animate.txt
  • Last modified: 2023/10/25 10:50
  • by 127.0.0.1