Dim i As ImageView
i.Initialize("")
i.Gravity = Gravity_Center
Dim bmp As Bitmap = LoadBitmapResize(dirname, filename, i.Width, i.Height, True)
i.Bitmap = bmp
Dim pix As Int
pix = bmp. ' I could select GetPixel from the Intellisence shown here after typing period
pix = i.Bitmap. ' no Intellisense shown here after typing period so I have to type GetPixel myself :(
...
i.Bitmap = bmp
Dim pix As Int
pix = bmp.GetPixel(0,0) ' no problem
pix = i.Bitmap.GetPixel(0,0) ' Unknown type: android.graphics.Bitmap
Nobut shouldn't this be valid code?
I know quite well what code is correct and what is not thank you. After half a century of practice I am getting quite good at it ![The code is not correct because you don't add "i" to an Activity or Panel and because Gravity_Center should be Gravity.Center]
I know; I was just kidding, answering to your "question":I know quite well what code is correct and what is not thank you. After half a century of practice I am getting quite good at it !
but shouldn't this be valid code?
Dim b As Bitmap = i.Bitmap
pix = b.GetPixel(0,0)