firemonkey

How to access TBitmap pixels directly in FMX2 (TBitmap.ScanLine replacement)?

你离开我真会死。 提交于 2020-12-30 19:29:42
问题 The FMX.Types.TBitmap class has the ScanLine property in FMX (FireMonkey), but it seems this property was removed, and is missing in FMX2 (FireMonkey FM2). Is there any workaround ? How do we supposed to access TBitmap content directly in FMX2 ? 回答1: For direct access you are expect to use the Map method. The documentation includes a number of examples, such as FMX.AlphaColorToScanline: function TForm1.TestAlphaColorToScanline(ABitmap: TBitmap; start, count: integer): TBitmap; var bitdata1,

Android memory corruption

馋奶兔 提交于 2020-12-15 06:08:35
问题 I have a very strange bug on Android that I can't explain. Most of the time, my app (made in Delphi with FireMonkey) ends with External exception xx or Access violation at address xxx, accessing address 0000000x and I can't explain why. The exceptions appear in different places of my software, and at very unexpected times. For example, the last error log I receive just now is this one: libapp.so $0000007D91A61548 Grijjy.Errorreporting.TgoExceptionReporter.GlobalGetExceptionStackInfo

Android memory corruption

余生长醉 提交于 2020-12-15 06:08:00
问题 I have a very strange bug on Android that I can't explain. Most of the time, my app (made in Delphi with FireMonkey) ends with External exception xx or Access violation at address xxx, accessing address 0000000x and I can't explain why. The exceptions appear in different places of my software, and at very unexpected times. For example, the last error log I receive just now is this one: libapp.so $0000007D91A61548 Grijjy.Errorreporting.TgoExceptionReporter.GlobalGetExceptionStackInfo