B4i Library SD: ImageCrop

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
 

Attachments

  • iSD_ImageCrop 0.09.zip
    254 KB · Views: 40
  • SampleCrop.zip
    210.5 KB · Views: 26
  • SampleCro2.zip
    210.6 KB · Views: 19
Last edited:

JohnC

Expert
Licensed User
Longtime User
Darn, I could use this lib in one of my android projects.
 

JohnC

Expert
Licensed User
Longtime User
:)
 

Star-Dust

Expert
Licensed User
Longtime 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
 

Star-Dust

Expert
Licensed User
Longtime 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:
Top