I'm a Xamarin beginner and I'm working on my first App, wright now.
But at the moment I'm stuck.
I'm trying to set a Logo onto an Image (both from Android Gallery). That works pretty well, but I need to change the location of the Logo on the Image.
So, I need to know the width/height of the Image.
I tried to get them by this code:
imageViewImg.BuildDrawingCache(true); bmpImg = imageViewImg.GetDrawingCache(true); imageViewImg.SetImageBitmap(bmpImg); bmpImg = Bitmap.CreateBitmap(imageViewImg.GetDrawingCache(true));
Actually it works, but I get the Width of the whole Image view, but I need the exact width of the Image.
I allready tried a lot of snippets I've found via Google, but nothing worked.
Is there anyone, who got a hint?
Thanks a lot!