简体   繁体   English

我应该使用GDI +还是可以通过简单的方式完成

[英]Should I use GDI+ or it can be done in a simple way

I have some business requirement where user uploads an image(map of a room or some place) into my application that gets stored into my database. 我有一些业务需求,用户需要将图像(房间或某个地方的地图)上载到应用程序中,并存储到数据库中。 When user uploads this picture it gives us its width and height of the image and could possibly also give us some points also within an image. 当用户上传这张图片时,它给我们提供了图片的宽度和高度,还可能在图片中也给我们一些点。

Now, we have some location tracking device in our application that tracks the location of anyone who holds some tag that are readable from this device at far locations. 现在,我们在应用程序中有了一些位置跟踪设备,该设备可以跟踪持有可从该设备在远处读取的某些标签的任何人的位置。

This location has to be mapped on to the uploaded image. 该位置必须映射到上传的图像上。 What are the possibilities to show this data on to that image. 有什么可能将此数据显示在该图像上。 Lets say i got the coordinate where i have to show that Tag. 可以说,我在必须显示该标记的位置获得了坐标。

How will i show this. 我将如何证明这一点。

Do i need to use GDI to mark that coordinate on that image ? 我是否需要使用GDI在该图像上标记该坐标?

I assume that you are displaying that image in a PictureBox control. 我假设您正在PictureBox控件中显示该图像。 The simplest way to do would be GDI+. 最简单的方法是GDI +。 You just have to override OnPaint() method of your PictureBox and after your image is drawn, you can draw overlay shape or text of your tag. 您只需要重写PictureBox的OnPaint()方法,即可在绘制图像之后绘制标记的叠加形状或文本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM