Create Graphics with ETX CG Editor

66.4.15 Base Properties

Enter topic text here.This type of properties has each item of ETX-G configuration. These properties define basic item parameters - size, position, background etc.
Base properties are specified in <ETX CG props> node of item XML description:

XML
<cg-item id='graphics-000'>
   <graphics type='rect' round-corners='0.30' outline='3.0' color='Red(220)-Yellow(100)-Green(180)' color-angle='-45' outline-color='white'/>
   <cg-props pos-x='36' pos-y='24' show='yes' move-type='accel-both' alpha='255' bg-color='Black(0)' pixel-ar='0.' play-mode='loop' interlace='auto' scale='fit-ar' align='top-left' width='284' height='256' pause='no' edges-smooth='0'>
       <indent left='0' right='0' top='0' bottom='0' use-for-bg='no'/>
       <group-indent left='0' right='0' top='0' bottom='0'/>
   </cg-props>
</cg-item>

Here is a table with description of structure fields and XML properties: 

  • ETX-G Property Field - bPauseItem
  • XML properties : Pause=’no’
  • Description : Pause the item (pause movement or image sequence) or release paused state.  Possible item types are flash, image sequence, crawl, rolls, ticker.
  • Possible Value : For structure: 0,1
  • For XML: ‘yes’, ‘no’
  • ETX-G Property Field - bShowItem
  • XML properties : Show=’yes’
  • Description : Shows or hides the item.
  • Possible Value : For structure: 0, 1.
  • For XML=’yes’, ‘no’
  • ETX-G Property Field - dbIPixelAR
  • XML properties : Pixel-ar=’0.’
  • Description : Item pixel AR (not supported for Flash item):
  • 0: automated (based on screen AR or overridden props.  E.g. for PAL 4:3 video the pixel AR is 1.066)
  • 1.0: square pixel.
  • 2.0: width doubled.
  • 0.5: half of width.
  • Possible Value : For both: double vale, e.g. ‘1.333’.
  • ETX-G Property Field - eAlign
  • XML properties : Align=’top-left’
  • Description : Set item alignment.
  • Possible Value : For structure: listed in eCG_Align enumeration.
  • For XML: ‘top-left’, ‘top’, ‘top-right’, ‘left’, ‘center’, ‘right’, ‘bottom-left’, ‘bottom’, ‘bottom-right’.
  • ETX-G Property Field - eInterlace
  • XML properties : Interlace=’auto’
  • Description : Interlacing mode (for smooth animation over interlaced video).
  • Note: For interlaced items flash rate ignored
  • Possible Value : For structure: listed in eCG_Interlace enumeration.
  • For XML: ‘auto’, ‘top’, ‘bottom’, ‘progressive’.
  • ETX-G Property Field - ePlayingMode
  • XML properties : Play-mode-=’loop’
  • Description : Mode of item playback
  • For structure: listed in eCG_PlayingMode enumeration.
  • For XML: ‘loop’, ‘onetime’, ‘onetime-hide’.
  • ETX-G Property Field - eScale
  • XML properties : Scale=’text-scale’
  • Description : Type of item scaling.
  • Possible Value : For structure: listed in eCG_Scale enumeration.
  • For XML: 'fit-ar', 'exact-fit', 'no-scale', 'shrink-to-fit', 'shrink-to-fit-ar', 'cover-ar', 'text-scale'
  • ETX-G Property Field - eType
  • XML properties : Specified in separated node.
  • Description : Item type.
  • Possible Value : For structure: listed in eCG_ItemType enumeration.
  • ETX-G Property Field - nAlpha
  • XML properties : Alpha=’255’
  • Description : Opacity of the item
  • Possible Value : For both: integer value from 0 (transparent) to 255 (solid).
  • ETX-G Property Field - nBackcolor
  • XML properties : Bg-color=’Black(0)’
  • Description : Background color of the item.
  • Possible Value : For structure: color in RGBA format 0xAABBGGRR, e.g. 0x0088AAEE
  • For structure: see Color settings.
  • ETX-G Property Field - nEdgesSmooth
  • XML properties : Edges-smooth=’0’
  • Description : Smoothness
  • For both: integer value from 0 to 16.
  • ETX-G Property Field - ptPos
  • XML properties : Pos-x=’36’
  • Pos-y=’24’
  • Description : Item position
  • Possible Value : For structure: specific in tagPOINT structure.
  • For XML: point coordinates in pixels.
  • ETX-G Property Field - rcindent
  • XML properties : Specified in child <indent> node:
  • <indent left='0' right='0' top='0' bottom='0' use-for-bg='no'/>
  • Description : The item content (image/text/flash) indent from item borders.
  • Note: If item in group then the view area is decreased by indent size.
  • Possible Value : For structure: specified in tagRECT structure
  • For XML: indent from each border in pixels.
  • use-for-bg - specifies whether the settings are implemented for background also ('yes') or not ('no')
  • ETX-G Property Field - szItem
  • XML properties : Width=’284’
  • Height=’256’
  • Description : Item (group) size
  • Special values:
  • szItem=(0,0) - use original size

    szItem=(0,y) - set X size according to AR

    szItem=(x,0) - set Y size according to AR,

    szItem=(-1,-1) - (group only) update group size to cover all group items

  • Possible Value : For structure: specified tagSIZE structure.
  • For XML: width and height in pixels.
  • ETX-G Property Field - 
  • XML properties : Move-type=’accel-both’
  • Description : Movement acceleration type
  • Possible Value : For XML:
  • linear: no acceleration
  • accel-start: acceleration for the beginning of movement

    accel-stop: acceleration for stopping of movement

    accel-both: both types of acceleration.