Did something like this a while back...there are many ways to approach 
the solution.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Use Flex to give the user an interface to draw a box or lasso an image 
spot to print.

So first you need a box (with a border and without fill) created on the 
fly as the user begins mouseDown, then as the mouse drags, constantly 
redraw the box as the mouse moves.  When mouseUp, that's the last 
drawing of the box.  If user OKs the selection, then send that 
dimensions and location of the box on the image to the backend (I use 
ColdFusion 8).  With the lastest addition of the <cfimage> tag, crop 
the image and show it to the user (I duplicated the image then cropped 
the copy, so the user can go back to the original.)

>From that page or view stack state, the user can click print or you can 
supply a print button.  

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

PCC

ps
For clients that need a high-res solution, there are a few more steps 
to increase image quality.

pps
Before ColdFusion 8 I had to use a java solution invoked into the 
application. <cfinvoke> is your friend :) 



--- In flexcoders@yahoogroups.com, "wwwpl" <[EMAIL PROTECTED]> wrote:
>
> We need to create a control that will allow the user to rubber band 
an 
> area of an image and then print it.  Does anyone know of a blog or 
> example code that has a rubber banding control or a control or code 
to 
> print a selected area of an image?
>


Reply via email to