Hi.I want to work with jjil library but I cant work my project. I add
source code my project.because jar file is not work
at first I want to work a simple code. but I cant see my image at
emulator.but there is no error message.
my code is here:
package bjjil.ex;
import jjil.algorithm.Rgb3x3Average;
import jjil.debug.*;
import jjil.core.Error;
import jjil.core.Image;
import jjil.core.RgbImage;
import jjil.core.Sequence;
public class BjjilActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Bitmap bmp = BitmapFactory.decodeResource(this.getResources(),
R.drawable.test).copy(Bitmap.Config.RGB_565, true);
// Bitmap'ın üzerine çizebilmek için bir çizim yüzeyi oluştur
int with=bmp.getWidth();
int height=bmp.getHeight();
RgbImage jimage=new RgbImage(with,height);
int [] jjilpix=jimage.getData();
bmp.getPixels(jjilpix, 0,with, 0, 0, with, height);
Sequence seq=new Sequence();
seq.add(new Rgb3x3Average());
try {
seq.push((Image)
jimage.clone());
} catch (Error e) {
// TODO
Auto-generated catch block
e.printStackTrace();
}
try {
jimage=(RgbImage)
seq.getFront();
} catch (Error e) {
// TODO
Auto-generated catch block
e.printStackTrace();
}
}}
please help me
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en