Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

NControl and DrawImage

$
0
0

I recently discover the NGraphics and NControl. I'm testing NControl in a XF project and can draw lines, rectangles, etc, but can't get the DrawImage to work for some reason. I'm targeting Android and have the NControlViewRenderer.Init( ) in the MainActivity. I'm trying to simply draw a JPG embedded resource on the screen. I copied some code from the NControl demo project and I'm able to open and load the image (bitmap) and have a valid IIImage, but canvas.DrawImage(..) does not render the image on the screen. I'm using NControl version 0.7.1

Could anybody post a simple XF sample project using NControl that uses DrawImage? Thanks!!


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>