1.02 uk.co.martinpearman.b4a.touchimageview.TouchImageViewWrapper TouchImageView uk.co.martinpearman.b4a.touchimageview.TouchImageView activity Click(X As Int, Y As Int) LongClick(X As Int, Y As Int) Initialize void pBA anywheresoftware.b4a.BA EventName java.lang.String SetBitmap Set the (foreground) image. void pBA anywheresoftware.b4a.BA aBitmap android.graphics.Bitmap RequestFocus boolean BringToFront void buildNativeView T arg0 android.content.Context arg1 java.lang.Class arg2 java.util.HashMap arg3 boolean RemoveView void SetBackgroundImage void arg0 android.graphics.Bitmap SetLayout void arg0 int arg1 int arg2 int arg3 int Invalidate void CreateLog Creates log entries with details about the current state of the TouchImageView. void Invalidate3 void arg0 int arg1 int arg2 int arg3 int GetDestRect Returns a Rect that describes the current scale and position of the image within the TouchImageView. anywheresoftware.b4a.objects.drawable.CanvasWrapper.RectWrapper ScaleSrcRectToDestRect Scale and position the area of the (foreground) image defined by SrcRect to the area of the TouchImageView defined by DestRect. ScaleToFit controls how the image should be aligned in the DestRect: CENTER - Center and maximise the image to fit the DestRect maintaining the aspect ratio. END - Maximise the image to fit the DestRect maintaining the aspect ratio, align the image with the bottom and right edges of the DestRect. FILL - Maximise the image to completely fill the DestRect, the aspect ratio may not be maintained. START - Maximise the image to fit the DestRect maintaining the aspect ratio, align the image with the top and left edges of the DestRect. void SrcRect android.graphics.Rect DestRect android.graphics.Rect ScaleToFit java.lang.String Invalidate2 void arg0 android.graphics.Rect SendToBack void IsInitialized boolean PreScale Change the current image scale by Scale, centering the change on (X, Y). For example a Scale value of 1.5 will increase the current scale by 150%. void Scale float PointX int PointY int MinScale float MinScale float Get or set the minimum scale that the image can be reduced by (zoomed out). Default MinScale is 0.5. Enabled boolean arg0 boolean Top int arg0 int Visible boolean arg0 boolean Gravity int Gravity int Get or Set the Gravity of the BackgroundImage. ClickPeriod int ClickPeriod int Get or Set the ClickPeriod in milliseconds. The ClickPeriod is the threshold between a click being treated as a Click or a LongClick. The default ClickPeriod is 200 milliseconds. Background android.graphics.drawable.Drawable arg0 android.graphics.drawable.Drawable Height int arg0 int Left int arg0 int Color arg0 int TouchEnabled boolean Enabled boolean Get or Set whether touch events are enabled. BackgroundImage android.graphics.Bitmap aBitmap android.graphics.Bitmap Get or Set the BackgroundImage. Tag java.lang.Object arg0 java.lang.Object MaxScale float MaxScale float Get or set the maximum scale that the image can be enlarged by (zoomed in). Default MaxScale is 1.5. Width int arg0 int TranslatePadding int TranslatePadding int Get or set the minimum number of pixels that the image will always display within the TouchImageView. Default TranslatePadding is 64 pixels. The image can not be dragged out of visibility, at least 64 pixels of width and height will always be visible. ScaleX float Get the factor which the image is currently scaled by on it's X axis. ScaleY float Get the factor which the image is currently scaled by on it's Y axis. 2.0 Martin Pearman