Select to view content in your preferred language

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

2786
2
06-09-2016 08:13 AM
MarkRubelmann
Deactivated User

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
Deactivated User

Cool!  Thanks Charlie!

0 Kudos