B4i Library SD: ImageCrop

Discussion in 'iOS Libraries' started by Star-Dust, Sep 29, 2018.

Similar threads

B4J Code Snippet [B4X][XUI] Fill and Fit images without distortion
B4A Code Snippet [B4X] [XUI] Create a round image
B4A Library [B4X] [XUI] CropView
B4i Library SD: RPMView
B4i Library SD: DragBoard
  1. Star-Dust

    Star-Dust Expert Licensed User

    This new library will allow you to make cuts on images in a square (rectangular), circle and ellipse.
    Moreover, the image can be enlarged by the user, and rotated to obtain different cuts.
    I have used XUI libraries, if I have time I convert it to Android.

    The full version will be distributed to those making a donation. You can contact me in private.


    iSD_ImageCrop

    Author: Star-Dust
    Version: 0.09
    • ImageViewCrop
      • Events:
        • Cropped
      • Functions:
        • Class_Globals As NSString*
        • CutImage As NSString*
          Set Cut Operation
        • DesignerCreateView (Base As NSObject*, Lbl As B4ILabelWrapper*, Props As B4IMap*) As NSString*
          Base type must be Object
        • FillImageToView (bmp As B4XBitmapWrapper*, ImageVw As B4XViewWrapper*) As NSString*
        • Initialize (ba As B4I*, Callback As NSObject*, EventName As NSString*) As NSString*
        • IsInitialized As BOOL
          Verifica se l'oggetto sia stato inizializzato.
        • ActiveMoveImage As NSString*
          Active/DisactiveMove Operation
        • ActiveRotateImage As NSString*
          Active/Disactive Rotation Operation
        • ActiveZoomImage As NSString*
          Active/Disactive Zoom Operation
        • ResetZoom As NSString*
          Set Zoom 100% - Fill display
      • Properties:
        • Bitmap
          Set Imag
        • Crop As NSString*
          Square, Circle, Ellipse or Star
        • CroppedBitmap As B4IBitmap* [read only]
        • Rotation As Float
          Set Degree rotation


    Sample 2
    IMG_0095.PNG
     

    Attached Files:

    Last edited: Oct 6, 2018
    ilan, Pooya1, Almora and 2 others like this.
  2. JohnCody

    JohnCody Well-Known Member Licensed User

    Darn, I could use this lib in one of my android projects.
     
  3. JohnCody

    JohnCody Well-Known Member Licensed User

  4. Star-Dust

    Star-Dust Expert Licensed User

    I have attached in the first post, the demo version and an example.

    In the future I will add a ring to rotate the image that will allow you to understand how many degrees you are rotating and a similar method for zooming
     
  5. Star-Dust

    Star-Dust Expert Licensed User

    Update rel 0.08

    Improvement of cutting functions.
    Adding the Zoom and Rotation Ring
    Possibility of cutting even with the Zoom function (or rotation) activated.

     
    Last edited: Oct 2, 2018
    Erel and moster67 like this.
  6. Star-Dust

    Star-Dust Expert Licensed User

    Update to release 0.09
    Add Star shape (expected from Star-Dust :p)

    IMG_0092.PNG
     
    Last edited: Oct 4, 2018
    ilan, Pooya1, Erel and 1 other person 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