Hi,
I have run this bit of code successfully in Main to convert a bitmap (bmp) to a byte array (bmp_bytes).
I'm trying to run this code in a class but can not work out what the target should be - I've tried Me and every other possibility I can think of but all result in major red line log protests when I run it.
Any suggestions would be appreciated...
B4X:
Dim no As NativeObject = Me
Dim bmp_bytes() As Byte = no.NSDataToArray(no.RunMethod("BitmapToArray:", Array(bmp)))
I'm trying to run this code in a class but can not work out what the target should be - I've tried Me and every other possibility I can think of but all result in major red line log protests when I run it.
Any suggestions would be appreciated...