Can I create a CIMMarker from an in-memory bitmap?

2372
2
06-09-2016 08:13 AM
Highlighted
New Contributor III

Hi,

I'm trying to create a marker from a bitmap, which can be done with SymbolFactory.ConstructMarkerFromFileAsync().  Is there a way to do the same thing with an in-memory bitmap instead of a file?  Either a Stream or a System.Drawing.Bitmap object would be fine.  For now I'm just writing the image to a temporary file and reading it from there, but that's just kind of dirty and hackish in my opinion.  A minor detail, I know, but it irritates me when SDKs operate on files instead of streams!

Reply
0 Kudos
2 Replies
Highlighted
Esri Contributor

Good call. We'll add this to the API for 1.4

Reply
0 Kudos
Highlighted
New Contributor III

Cool!  Thanks Charlie!

Reply
0 Kudos