在图像中打印特定字段 [英] print a specific field in an image

查看:65
本文介绍了在图像中打印特定字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我正在尝试简化操作,很高兴看到/听到示例/想法
正确的方法:

假设我有一个jpg图片:宽度为780px,高度为2546px
包含优惠券.

我的目标是点击优惠券并打印出来...

我的问题是实现它的最佳方法是什么

我想到了图像地图,当单击特定的优惠券"时,它将触发Java脚本调用,并且通过图像地图规范,它将加载(特定)图像的优惠券以进行打印.

我认为也许有更好的解决方案..

请记住,我唯一的选择是一张包含要打印的优惠券的大图像.

Hi, i am trying to do it simple and will be happy to see / hear, examples / ideas
for the right approach :

suppose i have an jpg image: width of 780px and height of 2546px
that contains coupons.

my goal is to click on a coupon and print it...

my question is what is the best way to implement it

i thought about image map the will trigger a java script call when ever specific "coupon" is clicked and through the image map specification it would load an image(of the specific) coupon for printing.

i think that maybe there is a better solution..

keep in mind that my only option is one large image that contains coupons for printing.

推荐答案

Create an image cropping control[^]

May be the above link can help. It will allow you to select certain area on the image.

[edit] clickable link [/edit]


我最终通过使用图像映射做到了这一点:

协调了发送到打印按钮"并发送到接受参数
的javascript的"print()"方法
参数是图片的编号(优惠券)

我有一个包含所有优惠券图像的文件夹:
1.jpg,2.jpg .....等''

打印方法检索字符串(1.jpg)
然后打印出来.
i did it eventually with the use of image maps:

coordinated the ''send to print button'' and send to javascript ''print()'' method that accept parameter

the parameter is a number of a picture(coupon)

i have a folder that contains all the coupons images:
1.jpg, 2.jpg ..... etc''

the print method retrieve the string (1.jpg)
and then print it.


这篇关于在图像中打印特定字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆