B4A Library [B4X] [XUI] CropView

Discussion in 'Additional libraries, classes and official updates' started by Erel, Jul 10, 2018.

  1. Erel

    Erel Administrator Staff Member Licensed User

    Cross platform, custom view that allows the user to select the cropping window.

    cropview.gif

    1. Add the view with the designer.
    2. Set the bitmap with CropView.SetBitmap.
    3. Optionally handle the CropCompleted event.
    4. Call GetCroppedBitmap to get the cropped bitmap.
    5. You can check that there is a valid selection window by calling IsValidSelection.

    Depends on: XUI, BitmapCreator (both are internal libraries).
    Requires a recent version of B4X.

    The class is included in the B4A project.
     

    Attached Files:

  2. JohnCody

    JohnCody Well-Known Member Licensed User

    Is there a way to make the crop window circular?
     
  3. Erel

    Erel Administrator Staff Member Licensed User

  4. tuhatinhvn

    tuhatinhvn Active Member Licensed User

    Can zoom in or zoom out??
     
  5. Erel

    Erel Administrator Staff Member Licensed User

    The first post clearly explains what it does. It allows the user to select an area in the image. It doesn't do anything else.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice