User Tools

Site Tools


magnifier

Differences

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

Link to this comparison view

magnifier [2015/09/18 14:49] (current)
glass created
Line 1: Line 1:
 +====== Magnifier ======
  
 +The Magnifier provides a touch enabled element with an optional graphical lens that will increase the magnification when placed over any display object on the stage.
 +
 +{| style="​float:​right;​margin:​0 0 30px 20px;"
 +|+ Magnifier with a default border over an image.
 +|-
 +|{{:​oemagnifier.jpg?​nolink&​250|Magnifier screenshot}}
 +|}
 +
 +{| class="​wikitable"​
 +!
 +Characteristic
 +!
 +Definition
 +|-
 +| Type || Interactive Display Object
 +|-
 +| Category || Element
 +|-
 +| Scope || Local
 +|-
 +| Position || *
 +|-
 +| Parents || Container
 +|-
 +| Children || none
 +|-
 +| Gestures || *
 +|-
 +| Requirements || none
 +|}
 +
 +
 +{| class="​wikitable"​
 +!
 +Attribute
 +!
 +Type
 +!
 +Description
 +|-
 +| bitmapData || object reference || 
 +|-
 +| distortionRadius || number || sets the amount of distortion or "​fish-eye"​ effect the lens goes through before focusing cleanly
 +|-
 +| graphic || text || sets the graphic type: default, notch, or none
 +|-
 +| magnification || number || the value of magnification of the lens, this can be increased or decreased by performing a rotation gesture on the lens, and its starting value can be set in cml
 +|-
 +| radius || number || the total area of the lens, including distortion effects if any
 +|}
 +
 +See Also: [[Display Attributes]]
 +
 +<​code:​csharp linenums:​1>​
 +<​TouchContainer x="​900"​ y="​250">​
 +    <Image src="​images/​bee.jpg"/>​
 +    <​GestureList>​
 + <​Gesture ref="​n-drag"​ gestureOn="​true"/>​
 + <​Gesture ref="​n-scale"​ gestureOn="​true"/>​
 + <​Gesture ref="​n-rotate"​ gestureOn="​true"/>​
 +    </​GestureList>​
 +</​TouchContainer>​
 +<​Magnifier x="​800"​ y="​200"​ radius="​100"​ magnification="​2"​ distortionRadius="​18"​ graphic="​default"/>​
 +</​code>​
magnifier.txt · Last modified: 2015/09/18 14:49 by glass