Recent

Author Topic: Android Floodfill  (Read 1251 times)

GreatDayDan

  • New Member
  • *
  • Posts: 22
  • It's a Great! day!
Android Floodfill
« on: July 10, 2019, 05:27:54 pm »
Does Lazarus/FPC on Android have a graphics floodfill method?

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: Android Floodfill
« Reply #1 on: July 10, 2019, 09:24:13 pm »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

winni

  • Hero Member
  • *****
  • Posts: 3197
Re: Android Floodfill
« Reply #2 on: July 10, 2019, 10:04:43 pm »
You can find a very good pascal floodfill in BGRAbitmap Package; there in the unit BGRADefaultBitmap.  It is called
procedure TBGRADefaultBitmap.ParallelFloodFill
and avoids recursion with the related problems.
Look at line 4507 ff

Winni

GreatDayDan

  • New Member
  • *
  • Posts: 22
  • It's a Great! day!
Re: Android Floodfill
« Reply #3 on: July 11, 2019, 09:30:50 pm »
Thanks for the tip.  ;D Now all I have to do is learn how to use it. My goal is to run the app on my wife's tablet.

circular

  • Hero Member
  • *****
  • Posts: 4196
    • Personal webpage
Re: Android Floodfill
« Reply #4 on: July 11, 2019, 09:58:19 pm »
By the way, the basic method is FloodFill.

ParallelFloodFill fills another bitmap according to the first one. This is useful for example if you want to make a mask of an area while leaving the original image unchanged.
Conscience is the debugger of the mind

GreatDayDan

  • New Member
  • *
  • Posts: 22
  • It's a Great! day!
Re: Android Floodfill
« Reply #5 on: July 11, 2019, 10:00:30 pm »
Coolness. :D ;) :)

 

TinyPortal © 2005-2018