jBitmap rotation lazarus / 43-Android ---------------------------------------------------------------------- neuro · 2025-10-30 14:31 File C:\fpcupdeluxe\ccr\lamw\android_bridges\Laz_And_Controls.pas contains functions Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i function jBitmap.ClockWise(_bmp: jObject): jObject;function jBitmap.AntiClockWise(_bmp: jObject): jObject; There are no examples showing how to use these functions. I have tried many variants but none of them work, jBitmap does not rotate. Please write sample program code which shows how to use these functions. ---------------------------------------------------------------------- Ally · 2025-10-30 16:06 https://forum.lazarus.freepascal.org/index.php/topic,70654.msg550977.h tml#msg550977 ---------------------------------------------------------------------- neuro · 2025-10-30 16:41 Quote from: Ally on October 30, 2025, 05:06:40 pmhttps://forum.lazarus .freepascal.org/index.php/topic,70654.msg550977.html#msg550977 This code is not suitable for Android. Unfortunately Android uses jBitmap instead of TCustomBitmap. We need sample program code for jBitmap rotation. ---------------------------------------------------------------------- neuro · 2025-10-31 00:05 I have found out how to use function “AntiClockWise” (which rotates jBitmap by 90 degrees), the sample program code is the following: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i jBitmapRota ted.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: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i jBitmapRotated.SetImage(jBitmap1.Rotate(jBitmapOriginal.GetImage(), Si ngle(rotation_angle)));jBitmapFlipped.SetImage(jBitmap1.FlipHorizontal (jBitmapRotated.GetImage()));jBitmapFlipped.SetImage(jBitmap1.FlipVert ical(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: QuoteC:\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 ---------------------------------------------------------------------- neuro · 2025-11-11 21:01 I have used jBitmap rotation in free open-source game “Kwazy Quilt Puzzle No. 7114”. It is available at Google Play at the address: https://play.google.com/store/apps/details?id=com.cognaxon.KwazyQuiltP uzzleNo7114 Source code is available at the address: https://games.cognaxon.com/?page=kwazy_quilt_puzzle_no_7114