B4J Library [B4X] [XUI] xResizeAndCrop

Discussion in 'B4J Libraries & Classes' started by klaus, Dec 5, 2018.

  1. klaus

    klaus Expert Licensed User

    This is a crossplatform CustomView.
    It allows to resize and crop images.
    It works on all three products: B4A, B4i and B4J.

    It is an evolution of the B4A project: Resize and crop image.
    To make a B4X CustomView was inspired by this thread: [B4X] [XUI] CropView.

    Demoprograms for all three products.
    Tested on PC, Android Samsung S6, iPhone 6.

    At the moment, I consider it as a 0.9 Beta version.

    upload_2018-12-5_19-49-13.gif

    xResizeAndCrop

    Author: Klaus CHRISTL (klaus)
    Version: 0.9
    • xResizeAndCrop
      • Events:
        • CropFinished
      • Functions:
        • Initialize (Callback As Object, EventName As String) As String
        • IsInitialized As Boolean
          Tests whether the object has been initialized.
        • LoadImage (Dir As String, FileName As String) As String
          loads the given image file to the xResizeAndCrop Customview
      • Properties:
        • CroppedImage As B4XBitmap [read only]
          gets the cropped image as a B4XBitmap, read only
        • CroppedView
          sets the Panel / Pane view for the cropped image, write only
          the Panel / Pane view must be added in the main code and transmitted to the custom view as this property.
        • HandleColor As Int
          sets or gets the HandleColor property
          value must a xui color
          Example code: <code>xResizeAndCrop1.HandleColor = xui.Color_RGB(255, 215, 0)</code>
        • Height As Int
          sets or gets the Height property
        • Image As B4XBitmap
          sets the image (B4XBitmap) to the Customview, write only
        • Left As Int
          sets or gets the Left property
        • MinHeight As Int
          sets or gets the MinHeight property
          value in pixels, no dip value
        • MinWidth As Int
          sets or gets the MinWidth property
          value in pixels, no dip value
        • Top As Int
          sets or gets the Top property
        • Visible As Boolean
          sets or gets the Visible property
        • Width As Int
          sets or gets the Width property
     

    Attached Files:

    Last edited: Dec 5, 2018
    fredo, Roberto P., Erel and 3 others like this.
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