B4i Library clsImageResizer - Rotate, Pinch, Move Image with Fingers or a Button (like adding a sticker)

Hi,

Want to share with you one of my old classes.

It is image resizer like in other apps which add a sticker,...




You can customize it as you wish.

It is very easy to use.

B4X:
Dim imgR as clsImageResizer

imgR.Initialize("aa",100,100)
imgR.Bitmap=LoadBitmap(...)

myPanel.AddView(imgR.asView,...)

You can also save the attributes(position, rotation angle,...) and load them after.

It Depends on GestureRecognizer class.

Narek
 

Attachments

  • clsImageResizer.bas
    18.8 KB · Views: 38
Last edited:
Top