I want to create a web-service that can combine user input text to image .
Let's say , I have textbox to input user's text string , and image preview which display preview of combination of user's text and user's uploaded image . Referencing this CodeProject link , I'm ok with this step .

But I want to enable user to resize the text on preview , using rectangle box around text like this enter image description here

How can I approach to make this ? Any third-party tool for this ?
Jquery or whatever !

有帮助吗?

解决方案

You could try by using jQuery UI Resizable. It enable any DOM element to be resizable by dragging the cursor grab at the right or bottom border to the desired width or height.

I've put up a simple jsFiddle demo for you here: http://jsfiddle.net/hmJCQ/


Updateas per OP's question in comment, for using jQuery UI Resizable with jQuery UI Draggable

Updated jsFiddle demo: http://jsfiddle.net/hmJCQ/1/

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top