duanlv1366 2010-12-09 14:36
浏览 80
已采纳

使用PHP和Javascript更改图像的一部分颜色

I am working on an application where what I exactly need to do is, to open an image, select some part of it using javascript, selecting a color through a javascript color picker and then apply that color to the selected part of the image.

I am familiar with a few jquery plugins to select a part of the image and implementing a color picker (some javascript or jquery plugin) , however I am stucked in applying the color to the selected part of the image. I know this needs server side implementation,I am using php.

Please suggest.

Thanks in advance.

  • 写回答

2条回答 默认 最新

  • duandazhen7306 2010-12-09 14:41
    关注

    You will be only able to draw an object like line, circle, rectangle with fill colors and some transparency..

    if that is like what you are looking for..

    you can do that with php GD library, using php methods like drawcircle, with parameters for circle or rectangle coordinates, fill color, fill color's opacity (transparency).

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥50 mac mini外接显示器 画质字体模糊
  • ¥15 TLS1.2协议通信解密
  • ¥40 图书信息管理系统程序编写
  • ¥20 Qcustomplot缩小曲线形状问题
  • ¥15 企业资源规划ERP沙盘模拟
  • ¥15 树莓派控制机械臂传输命令报错,显示摄像头不存在
  • ¥15 前端echarts坐标轴问题
  • ¥15 ad5933的I2C
  • ¥15 请问RTX4060的笔记本电脑可以训练yolov5模型吗?
  • ¥15 数学建模求思路及代码