根据搜索突出显示图像中的数字 [英] Highlight number in image based on search

查看:109
本文介绍了根据搜索突出显示图像中的数字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有数字图像...我想突出显示从图像中搜索到的数字..我怎样才能在网站上使用c#来做这个?



我想要的是当用户搜索号码时图像中的数字应该突出显示...



我尝试了什么: < br $> b $ b

我试图搜索它..但我不知道我是如何解决这个问题的。

I have image with numbers...and i want to highlight that number which is searched from image..so how can i do this using c# in website??

What i want is when user search number that number in image should be highlighted...

What I have tried:

I tried to search about it..but i have no idea how i solve this question.

推荐答案

当用户搜索一个数字时,然后用新图像替换放置当前图像的div(容器)(高亮显示的图像)



When user search an number , then on replace the div (container) where the current image is placed with new image(highlighted image)

var src =


(this).attr('src');
(this).attr('src');


('#show img')。attr('src', src);
('#show img').attr('src',src);







您必须以与数字同步的方式命名您的ID已经搜索过了。



底线,

1)根据输入的数字找到搜索到的图像(使用一对一关系为海rched number和id元素)

2)用高亮显示的图像交换图像。

- HRV




You have to name your id in such way that its in sync with number you have searched.

Bottom line,
1) find the image searched based on the number entered (use one to one relation for searched number and id of the element)
2) swap the image with highlighted image.
- HRV


这篇关于根据搜索突出显示图像中的数字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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