User Tools

Site Tools


maskcontainer

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

maskcontainer [2015/09/18 15:23] (current)
glass created
Line 1: Line 1:
 +====== MaskContainer ======
  
 +The MaskContainer element takes in one or multiple images and applies a mask designated in '''​CML'''​ to all images in its child list.
 +
 +{| style="​float:​right;​margin:​0 0 30px 20px;"
 +|+ A mask container masking an image of X-rayed light bulbs over light bulbs in the visible spectrum.
 +|-
 +|{{:​oemaskcontainer.jpg?​nolink&​200|MaskContainer screenshot}}
 +|}
 +
 +{| class="​wikitable"​
 +!
 +Characteristic
 +!
 +Definition
 +|-
 +| Type || Interactive Display Object
 +|-
 +| Category || Element
 +|-
 +| Scope || Local
 +|-
 +| Position || *
 +|-
 +| Parents || Container
 +|-
 +| Children || *
 +|-
 +| Gestures || *
 +|-
 +| Requirements || none
 +|}
 +
 +{| class="​wikitable"​
 +!
 +Attribute
 +!
 +Type
 +!
 +Description
 +|-
 +| dragAngle || number || 
 +|-
 +| maskBorderAlpha || number || alpha for the border of the mask if desired
 +|-
 +| maskBorderColor || number || mask border color if a border is desired around the mask element
 +|-
 +| maskBorderStroke || number || the thickness of the border in pixels
 +|-
 +| maskHeight || number || the mask height for rectangles
 +|-
 +| maskRadius || number || the mask radius for circles
 +|-
 +| maskWidth || number || the mask width for rectangles
 +|}
 +
 +See Also: [[Display Attributes]]
 +
 +<​code:​csharp linenums:​1>​
 +<Image x="​500"​ y="​150"​ resample="​true"​ width="​600"​ src="​spectrum/​bulbs_vis.jpg"/>​
 +<​MaskContainer maskShape="​rectangle"​ x="​500"​ y="​150"​ maskWidth="​200"​ maskHeight="​100"​ maskBorderColor="​0xff0000"​ maskBorderStroke="​2"​ maskBorderAlpha="​0.75"​ mouseChildren="​false">​
 +    <Image width="​600"​ src="​spectrum/​bulbs_off_therm.jpg"/>​
 +    <Image width="​600"​ src="​spectrum/​bulbs_off_uv.jpg"/>​
 +    <Image width="​600"​ src="​spectrum/​bulbs_therm.jpg"/>​
 +    <Image width="​600"​ src="​spectrum/​bulbs_uv.jpg"/>​
 +    <Image width="​600"​ src="​spectrum/​bulbs_uv_pure.jpg"/>​
 +    <Image width="​600"​ src="​spectrum/​bulbs_ir.jpg"/>​
 +    <Image width="​600"​ src="​spectrum/​bulbs_xray.jpg"/>​
 +
 +    <​GestureList>​
 +        <Gesture ref="​double_tap"​ gestureOn="​true"/>​
 +        <Gesture ref="​n-drag"​ gestureOn="​true"/>​
 +        <Gesture ref="​n-scale"​ gestureOn="​true"/>​
 +        <Gesture ref="​n-rotate"​ gestureOn="​true"/>​
 +    </​GestureList>​
 +</​MaskContainer>​
 +</​code>​
maskcontainer.txt · Last modified: 2015/09/18 15:23 by glass