Hi
I have a png image stored as a resource. I want to create a new point image style as the image. How do I create a GeoImage from a resource? I can see constructors for filename and stream?
Cheers
Steve
Hi
I have a png image stored as a resource. I want to create a new point image style as the image. How do I create a GeoImage from a resource? I can see constructors for filename and stream?
Cheers
Steve
Figured it out:
inMemoryLayer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle.PointType = PointType.Bitmap;
MemoryStream memoryStream = new MemoryStream();
Properties.Resources.job.Save(memoryStream, ImageFormat.Png);
inMemoryLayer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle.Image = new GeoImage(memoryStream);
Cheers
Steve
Steve,
Thanks for your sharing on this. I appreciate it very much.
Thanks.
Yale