Redian新闻
>
Re: Display, edit, and save Image on HTM
avatar
Re: Display, edit, and save Image on HTM# Java - 爪哇娇娃
c*s
1
客户端是难点。首先得有一个能运行在浏览器里的图片编辑工具。可以是Applet,你的先
找到这样的工具再说。
显示这个工具时,jsp知道要编辑的图片的URL,把这个URL通过参数告诉给工具。
保存时可以通过http把图片二进制内容通过http post到一个会保存图片的servlet里。做
的时候如果你用commons-httpclient包,大概只需要几行代码。

html,
avatar
v*a
2
Thank you so much for your advice. If I use Applet, can I draw inregular curve
lines on the pic? Does anyone have some source code about how to load an image
to applet and edit it(not resize or sharp image)? right now, I am trying to do
a test by just loading an image from a file...thanks daxia!



draw

【在 c*****s 的大作中提到】
: 客户端是难点。首先得有一个能运行在浏览器里的图片编辑工具。可以是Applet,你的先
: 找到这样的工具再说。
: 显示这个工具时,jsp知道要编辑的图片的URL,把这个URL通过参数告诉给工具。
: 保存时可以通过http把图片二进制内容通过http post到一个会保存图片的servlet里。做
: 的时候如果你用commons-httpclient包,大概只需要几行代码。
:
: html,

avatar
c*s
3
编辑图片的applet不是一两句就可以说清楚,photoshop这么大的软件也是编辑图片。能
让人怎么画要取决于你选用的工具。
此工具看上去像 http://www.izhuk.com/painter/ ,但还必须是Open Source,因为最后
你要把结果通过http post到服务端,这段代码很可能要自己写。
显示图片的程序还是别写了。显示出来的图片肯定编辑不了。找到画图工具后那工具会有
自己的显示图片的方法,现在做了也白做。
第一步先找工具。

curve
image
do



【在 v******a 的大作中提到】
: Thank you so much for your advice. If I use Applet, can I draw inregular curve
: lines on the pic? Does anyone have some source code about how to load an image
: to applet and edit it(not resize or sharp image)? right now, I am trying to do
: a test by just loading an image from a file...thanks daxia!
:
: 先
: 做
: draw

avatar
v*a
4
Thank you! I took a look at the one you told me, it is really cool but not
open source:( whats more, it does include too more functions than i need.
I just need open display image, draw on it with inregular curve (only need 3
color option), then save it back to DB.
I am a newbie for java and this really drives me nuts. I am searching for such
kind of software which is open source on google, but I didnt find one till
now:(!
Is there anyone can recomend such kind of painter software to me?
Sigh...

【在 c*****s 的大作中提到】
: 编辑图片的applet不是一两句就可以说清楚,photoshop这么大的软件也是编辑图片。能
: 让人怎么画要取决于你选用的工具。
: 此工具看上去像 http://www.izhuk.com/painter/ ,但还必须是Open Source,因为最后
: 你要把结果通过http post到服务端,这段代码很可能要自己写。
: 显示图片的程序还是别写了。显示出来的图片肯定编辑不了。找到画图工具后那工具会有
: 自己的显示图片的方法,现在做了也白做。
: 第一步先找工具。
:
: curve
: image

avatar
g*g
5
It's not really hard to do this job if you know Java2D,
however, as a newbie, I guess the best you can do is
download the image, edit using a local tool, and upload.

【在 v******a 的大作中提到】
: Thank you! I took a look at the one you told me, it is really cool but not
: open source:( whats more, it does include too more functions than i need.
: I just need open display image, draw on it with inregular curve (only need 3
: color option), then save it back to DB.
: I am a newbie for java and this really drives me nuts. I am searching for such
: kind of software which is open source on google, but I didnt find one till
: now:(!
: Is there anyone can recomend such kind of painter software to me?
: Sigh...

avatar
c*s
6
这对你可能稍微难了点。建议你问老板是不是可以做成下载,编辑,上传的方式。如果他
坚持要在页面上编辑再花时间研究工具。

such



客户端是难点。首先得有一个能运行在浏览器里的图片编辑工具。可以是Applet,


【在 v******a 的大作中提到】
: Thank you! I took a look at the one you told me, it is really cool but not
: open source:( whats more, it does include too more functions than i need.
: I just need open display image, draw on it with inregular curve (only need 3
: color option), then save it back to DB.
: I am a newbie for java and this really drives me nuts. I am searching for such
: kind of software which is open source on google, but I didnt find one till
: now:(!
: Is there anyone can recomend such kind of painter software to me?
: Sigh...

avatar
v*a
7
Higuys,
Thanks so much so your adcive as always. I found the software you recommend to
me : J-painter can be used to my project. Eventhough it is not open-source, we
can configure the parameters to make it work and load /save files to database.
I didnt try it yet, but based on its instruction, i have a feeling that it
gonna work! Thanks in advance.
If i get ques, i might have to borther you again.
THANKS


3



inregular
an
trying

【在 c*****s 的大作中提到】
: 这对你可能稍微难了点。建议你问老板是不是可以做成下载,编辑,上传的方式。如果他
: 坚持要在页面上编辑再花时间研究工具。
:
: such
: 。
: 最
: 会
: 客户端是难点。首先得有一个能运行在浏览器里的图片编辑工具。可以是Applet,
: 。

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。