user defined point: change image

May 4, 2011 at 2:53 PM
Edited May 4, 2011 at 3:22 PM

hi,

i need to change at runtime the user defined point for a shape;

i use set_UDPointType() function to set the image related to shape on the map;

now, i want that, pressing a button, i can change the image related to that shape...how can i do this??

 

second point: i have a function that rotates an image and returns a bitmap, but i cannot update the related image on the map for the related shape---how can i do it?is there a way to update at runtime the image stored in udpointlist?

please need help!

Thanks a lot

May 24, 2011 at 9:04 AM

anybody can help me for this issue?

thanks

May 31, 2011 at 8:08 PM

Have you tried:

Image image = AxMap1.get_UDPointImageListItem(layer, I)

image.SetImageBitsDC(hDC)

 

You'll have to have the same size image though in order to use SetImageBitsDC.

May 31, 2011 at 8:11 PM

On the first one, you could add both images to the array of images, then AxMap1.set_ShapePointImageListID(layer, shp, imageIndex).

 

-Sam