stacker_liew 5 Posted August 16, 2022 Does it easy? What is the diferrent of TBitmap between FMX and Vcl? File attached: Utetris.pas Share this post Link to post
Rollo62 536 Posted August 17, 2022 (edited) TL;DR; In FMX you can map and access the pixels for read and write via TBitmapSurface and TMapAccess https://docwiki.embarcadero.com/Libraries/Sydney/en/FMX.Graphics.TMapAccess https://docwiki.embarcadero.com/Libraries/Sydney/en/FMX.Surfaces.TBitmapSurface https://stackoverflow.com/questions/15185502/how-to-access-tbitmap-pixels-directly-in-fmx2-tbitmap-scanline-replacement https://docwiki.embarcadero.com/CodeExamples/Alexandria/en/FMX.AlphaColorToScanline_(Delphi) https://stackoverflow.com/questions/71076263/how-to-change-bitmap-from-vcl-graphics-tbitmap-to-fmx-graphics-tbitmap https://stackoverflow.com/questions/51523321/how-to-draw-fmx-surface-tbitmapsurface-on-fmx-graphics-tbitmap/51526855#51526855 https://stackoverflow.com/questions/51523321/how-to-draw-fmx-surface-tbitmapsurface-on-fmx-graphics-tbitmap Edited August 17, 2022 by Rollo62 Share this post Link to post