Convert file to TGBRABitmap and back to file lazarus / 43-Android ---------------------------------------------------------------------- biologic · 2025-08-23 05:55 These are the steps I want to do : Load button __________ file (uri) ----> jBitmap ----> TBGRABitmap Convert button ____________ ---> do pixels change to gray/sepia on TBGRABitmap pixels Save button __________ ----> jBitmap ----> file (png or other format) How to do this ? ---------------------------------------------------------------------- biologic · 2025-08-23 13:07 I will do step 1. How do I load a a file in a jBitmap ? This file is identified with a treeUri, from a loadfile dialog. Thanks. ---------------------------------------------------------------------- biologic · 2025-08-23 14:00 I have this code for step 1: 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 bmploaded:= true;ImageView1.SetImageBitmap(ImageFileManager1.LoadFromUri(treeUri)) ;bmp := TBGRABitmap.Create(ImageView1.GetWidth, ImageView1.GetHeight); filename:=self.GetFileNameByUri(IntentManager1.GetDataUri(intentData)) ;// load jbitmap1 with bitmap from urijBitmap1:= self.GetBitmapFromUri(treeUri);// jbitmap -> TBGRABitmap // how to do ?  Is this a good method ? ---------------------------------------------------------------------- biologic · 2025-08-23 14:40 Nevermind, I found a solution in ChapGPT.