I have found out how to use function “AntiClockWise” (which rotates jBitmap by 90 degrees), the sample program code is the following:
jBitmapRotated.SetImage(jBitmap1.AntiClockWise(jBitmapOriginal.GetImage()));
I have updated LAMW by writing 3 new functions for jBitmap: Rotate, FlipHorizontal, FlipVertical.
“Rotate” function rotates jBitmap by any angle.
The sample program code us usage is the following:
jBitmapRotated.SetImage(jBitmap1.Rotate(jBitmapOriginal.GetImage(), Single(rotation_angle)));
jBitmapFlipped.SetImage(jBitmap1.FlipHorizontal(jBitmapRotated.GetImage()));
jBitmapFlipped.SetImage(jBitmap1.FlipVertical(jBitmapRotated.GetImage()));
In github I have created pull requests for “lazandroidmodulewizard” project of
jmpessoa.
jmpessoa, please confirm pull requests for github updates.
Newly added jBitmap rotation functions are located in updated LAMW files:
C:\fpcupdeluxe\ccr\lamw\android_wizard\smartdesigner\java\jBitmap.java
C:\fpcupdeluxe\ccr\lamw\android_bridges\Laz_And_Controls.pas
C:\fpcupdeluxe\ccr\lamw\android_bridges\androidwidget.pas