Select to view content in your preferred language

Draw Pixel with ArcGIS in C# WPF

310
1
10-08-2012 11:01 AM
Labels (1)
EzraSidran
Emerging Contributor
I need a function:

DrawPixel(x,y, RGB)

that simply draws a pixel of a specified RGB value on the screen at an x,y location. Apparently this is impossible in WPF, however this is do-able via ArcGIS.

The client that I'm working for uses ArcGIS and, apparently, somewhere in there is a function that will let me do this.

Can somebody please point me in the right direction?

Thanks.
0 Kudos
1 Reply
MichaelBranscomb
Esri Frequent Contributor
Hi,

To add a temporary point to the map you should use the GraphicsLayer class: http://resources.arcgis.com/en/help/runtime-wpf/apiref/index.html?ESRI.ArcGIS.Client~ESRI.ArcGIS.Cli....

When you say X,Y coordinates, if you mean screen coordinates you can use the Map.ScreenToMap method to convert: http://resources.arcgis.com/en/help/runtime-wpf/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Map~Scr....

The map coordinates should be in the same coordinate system as the map but the map will reproject them if it needs to.


Cheers

Mike
0 Kudos