Argis .NET WP8.1 draw bitmap layer - windows-phone-8

So, my goal is to generate heatmap byte array from C++ code, pass it to C#. Then create BitmapImage (no Bitmap in WP8.1 SDK) from that array and render it as a layer in Arcgis.
Is it possible to render bitmap overlay in arcgis.net?
Thanks

I didnt found functionality to create bitmap from pixel data array. Instead i used lodepng in C++ to create png and returned that to C# as byte array.
In ArcGis i used GraphicsLayer and draw that heatmap png as PictureMarker.

Related

Is it possible to load only one specific object from the model(document) when initializing the document in the Forge viewer?

We would like to know if it possible to initialize the viewer to only render an specific object id.
There is a tutorial to extract geometry from a model, but it involves using the derivative to convert geometry to OBJ.
https://forge.autodesk.com/en/docs/model-derivative/v2/tutorials/extract-geometry-from-source-file/
The idea is to create a catalog of objects based on the elements in a model (document). We usually work with Revit files.
Viewer works with dbIds (or nodeIds which are equivalent to objectIds) and may load bubbles (geometry constructs) selectively based on - see live sample here
viewer.loadModel(svfUrl,{ids:[dbIds...]})

What objects are supported in threejs JSON format?

I'm trying to export a scene from some modeling software to three.js using the latest JSON format (4).
It's not clear what objects are supported in this format.
Are mesh files (.stl, .obj), AxisHelper, ArrowHelper and TextGeometry supported?
I can export mesh files using Geometry but I don't want to reinvent the wheel.
What objects are supported?
Looking into the code it looks like that supported "objects" in the JSON format are:
Geometry
Material
Skinning/Bones
Animation/Frames
Morphing
Lights
Cameras
So AxisHelper, ArrowHelper and TextGeometry is not.

Load CreateJS canvas from json data

I use create.js library and want to load canvas objects from json data and import canvas object to json.
Previously I used fabric.js and there was function:
canvas.loadFromJSON(jsonData, function() {});
and
to import canvas to JSON data canvas.toJSON() or canvas.toDatalessJson(),
so I'm interested if this is possible in create.js too?
if yes how i can do it?

KineticJS load json layer

I am saving my layers independently to a database. But now I want to load the JSON to the specific layer. But I can only load the JSON for the stage.
How can i solve this?
Here is the generic procedure for serializing an individual layer:
var layerJSON=layer.toJSON();
Then you can deserialize that layerJSON and add the rehydrated layer to the stage like this:
var layer1=Kinetic.Node.create(layerJSON);
stage.add(layer1);
layer1.draw();
Remember that images and event handlers are not serialized so you will have to add them to the layers after deserializing.
A Demo: http://jsfiddle.net/m1erickson/LMEn6/

Can JSON Format support Scene graph?

I am attempting to write a STEP loader that converts STEP to the THREE JS JSON format.
However, I have not seen anything in the JSON format information about creating a scene graph - i.e. a hierarchical scene structure.
Is it possible to do so?
Thanks - Imtiaz
If you are writing a Loader, you don't need Three.js JSON format as an intermediate step. As the other loaders do, just create the THREE.Geometry, THREE.Mesh, THREE.Object3D etc objects directly as you go about parsing the STEP file. Object3D is the basic container which you can use to create hierarchies. In addition to being able to contain meshes, you can .add() any number of other Object3Ds into Object3D.
If you still want to have this JSON step, the three JSON model format itself does not have support for hierarchies. But there is also (rather new I believe) Three.js object JSON format, which can store hierarchies. See THREE.ObjectLoader , it is in src/loaders/ObjectLoader.js