iOS Question Object not iniialized (UIImage)

tsteward

Well-Known Member
Licensed User
Longtime User
Not sure why this crashes.
xResizeAndCrop puts an image on pnlCroppedImage.
In B4A I didn't need to initialize

My Code is
B4X:
Dim bmpCroped As Bitmap
bmpCroped.Initialize2(pnlCroppedImage.GetBitmap)
In B4A I use
B4X:
Dim bmpCroped As Bitmap
bmpCroped = pnlCroppedImage.GetBitmap

In B4I I get this error
 

tsteward

Well-Known Member
Licensed User
Longtime User
Never use Bitmap. Only B4XBitmap.

What is the output of Log(pnlCroppedImage.GetBitmap) ?
The output is:
<B4XBitmapWrapper: (null)>
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…