Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...

KnightRider

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by KnightRider

  1. private function init():void
    {
        //rect for bounding image within canvas
        _rect=new Rectangle(0,0,canvas.width,canvas.height);
        _manager.bounds=_rect;
        _fCrop = new FlexCrop(_imgC,_manager);
        _fCrop.configureCropMode(false,.5,0xAACCBB,true);
        _fCrop.addEventListener("enterCropMode",sCrop);
    }

    private function sCrop(e:Event):void
    {
        //_rect=_manager.getSelectionBounds();
        //_rect for bounding crop within image component
        _rect=new Rectangle(_imgC.x,_imgC.y,_imgC.width*_imgC.scaleY,_imgC.height*_imgC.scaleY);
        _manager.lockRotation=true;//lock rotation of crop
        _manager.bounds=_rect;
    }
               
     

     

    before rotation its working well crop is bounded with in image

    post-18453-0-61708800-1392802147_thumb.png

     

    After rotation img1

    post-18453-0-74495200-1392802155_thumb.png

     

    After rotation img2

    post-18453-0-23913700-1392802161_thumb.png

×