Adding OxyImage in model

Jul 24, 2013 at 1:17 PM
Edited Jul 25, 2013 at 1:09 PM
I want to add a bitmap image to the plot. I have a bitmapimage, which I made from a matrix. I want to know how to add this image to oxyplot? I made scatterseries , but it got too slow.

I made a plotmodel, i am not able to add oxyimage to plotmodel.

I looked at this. But I could not get rendercontext of the model.

I made OxyImage and added to model using image annotation:
                model.Annotations.Add(new ImageAnnotation
                    ImageSource = image,
                    X = new PlotLength(.5, PlotLengthUnit.RelativeToPlotArea),
                    Y = new PlotLength(.5, PlotLengthUnit.RelativeToPlotArea),
                    Width = new PlotLength(.5, PlotLengthUnit.RelativeToViewport),
                    Height = new PlotLength(.5, PlotLengthUnit.RelativeToViewport),
                    Opacity = 1,
                    Interpolate = false,

I see the image, but it doesnt zoom or move.

This bitmap is an rgb image created from bytearray.

any input is deeply appreciated.

thanks a lot
Jul 25, 2013 at 3:13 PM
well, this part is fine. i will post another issue that i am facing. thanks