I wanted to write a small bitmap library
and I am having problems with passing the bitmap
back to the b4a program
and I am having problems with passing the bitmap
back to the b4a program
B4X:
public Bitmap loadbitmap(String Directory, String Filename) throws FileNotFoundException {
BitmapFactory.Options options = new BitmapFactory.Options();
options.inSampleSize = 4;
Bitmap returnBitmap ;
FileInputStream fs = new FileInputStream(Directory + Filename);
//InputStreamWrapper file1 = new File.InputStreamWrapper();
returnBitmap = BitmapFactory.decodeStream(fs, null, options);
return returnBitmap;
}
Compiling code. 0.11
Compiling layouts code. 0.01
Generating R file. 0.00
Compiling generated Java code. Error
B4A line: 20
Activity.Background=mm
javac 1.6.0_26
src\a\b\c\main.java:211: inconvertible types
found : vb.smart.bitmaps.smartbm
required: android.graphics.drawable.Drawable
mostCurrent._activity.setBackground((android.graphics.drawable.Drawable)(mostCurrent._mm));
^
1 error