Jump to content
Sign in to follow this  
xorpas

show image selected on imagecontrol

Recommended Posts

I have this code to select image need to show it on image control 

 

var
  Intent: JIntent;
begin
  Intent := TJIntent.Create;
  Intent.setAction(TJIntent.JavaClass.ACTION_OPEN_DOCUMENT)
    .addCategory(TJIntent.JavaClass.CATEGORY_OPENABLE)
    .setType(StringToJString('image/*'));
    TAndroidHelper.Activity.startActivityForResult(Intent, Dosya_Sil);
  if Intent.resolveActivity(TAndroidHelper.Context.getPackageManager) <> nil
  then
  begin
    MainActivity.startActivityForResult(Intent, Resim_Goster);
//    ImageControl1.Bitmap.Assign();

  end
  else
    ShowMessage('No picture received!');

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×