1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | <?xml version="1.0" encoding="utf-8"?> <Canvas xmlns=http://www.adobe.com/2006/mxml xmlns:flash.filters="flash.filters.*" creationComplete="onCreationComplete()" horizontalScrollPolicy="off" verticalScrollPolicy="off" mouseWheel="onMouseWheel(event)" > <Script> // 图片处理功能具体实现 </Script> <Zoom id="zoomEffect" target="{image}" duration="100" zoomHeightTo="1" zoomWidthTo="1" effectEnd="onEffectEnd()" easingFunction="{zoomEasingFunction}"/> <Move id="moveEffect" target="{image}" easingFunction="{moveEasingFunction}" /> <Canvas id="maskCanvas" backgroundColor="#FF0000" width="100%" height="100%"/> <Image id="image" mask="{maskCanvas}" source="{_source}" height="420" mouseDown="startImageDrag()" mouseMove="undoOutside()" complete="imageComplete()" doubleClickEnabled="true" visible="{_source != null image.percentLoaded == 100}"/> </Canvas> |
1 2 3 4 5 6 7 8 9 10 11 12 | <ImgZomm:ImageZoom id="zoomComponent" borderStyle="solid" source="{}" bottom="0" left="0" top="0" right="0" zoomIncrement="0.2" imageDoubleClickEnabled="true" mouseWheelEnabled="false" mouseFollow="true" mouseUp="showMouseEvent(event)" /> <VSlider id="brightnessValue" alpha="0" minimum="-100" maximum="100" snapInterval="1" value="0" height="120" liveDragging="true" x="7" y="96" dataTipFormatFunction="degrees_func_Brightness" buttonMode="true" useHandCursor="true"/> <Button id="zoomInButton" alpha="0" icon="@Embed('/theme/Icons_02.gif')" click="imgZoomIn(true)" top="395" height="16" width="16" toolTip="Zoom In" useHandCursor="true" buttonMode="true" left="136"/> |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |