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

2652
2
06-09-2016 08:13 AM
MarkRubelmann
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!

0 Kudos
2 Replies
CharlesMacleod
Esri Regular Contributor

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

0 Kudos
MarkRubelmann
New Contributor III

Cool!  Thanks Charlie!

0 Kudos