所有软件外包项目 Gray arrow bg Write javascript class to mask regions of image

Write javascript class to mask regions of image 资金已经托管 线上项目,线下洽谈,智城安排

发包方 : Patricia clarke 接包方 : Amitlogicnext 状态 :完成
项目编号 : 94553
项目预算 : $1,000-5,000
开发周期 : 7 天
技能 : JavaScript
发布日期 : 2010-01-02

描述

Implement a Javascript library to enable masking regions of an image and fetching the mask boundaries.

You will be provided with a stubbed Javascript class that defines the public API.  You will also be provided with a demo.html file that uses the library.  We will use this demo file to review the work.

Acceptance criteria:

 General:
 - Can add a new mask (newMask function)
 - Can programmatically add a mask (addMask function)
 - Can delete a mask by clicking a 'x' or using a hotkey
 - Can get a list of the masks (getMasks function)
 - Can drag masks around
 - Can resize masks by dragging borders or corners of mask
 - Works on IE6, IE7, IE8, FF3, Safari 4, Chrome
 - Include/Exclude opacity:
   - When mode==exclude, masked regions should have opacity=50%
   - When mode==include, non-masked regions should have opacity=50%

 Crop boundaries and image scaling:
 - addMask and getMasks should accept and return coordinates based on the image's full size
 - library should compensate for scaling.  Example:
     - paris-train.jpg image is 2304x1728
     - demo.html displays the image with width=600 (26% of original size)
     - if addMask(100, 100, 500, 200) is called, these should be scaled so that the box is
       placed at (26, 26, 130, 52) on the scaled image.

 Technical:
 - No other dependencies exist besides jQuery 1.3.2
 - Code does not use any global variables
 - Code uses jQuery() instead of $() global

竞标

请您先登录,然后提交此项目的竞标方案。
还不是智城用户? 智城期待您的加入,请注册成为我们的一员吧!
Project ad2