Search in sources :

Example 1 with MagicImageDisplay

use of com.seu.magicfilter.display.MagicImageDisplay in project MagicCamera by wuhaoyu1990.

the class ImageActivity method initMagicPreview.

private void initMagicPreview() {
    GLSurfaceView glSurfaceView = (GLSurfaceView) findViewById(R.id.glsurfaceview_image);
    mMagicImageDisplay = new MagicImageDisplay(this, glSurfaceView);
    Intent photoPickerIntent = new Intent(Intent.ACTION_PICK);
    photoPickerIntent.setType("image/*");
    startActivityForResult(photoPickerIntent, REQUEST_PICK_IMAGE);
}
Also used : MagicImageDisplay(com.seu.magicfilter.display.MagicImageDisplay) Intent(android.content.Intent) GLSurfaceView(android.opengl.GLSurfaceView)

Aggregations

Intent (android.content.Intent)1 GLSurfaceView (android.opengl.GLSurfaceView)1 MagicImageDisplay (com.seu.magicfilter.display.MagicImageDisplay)1