GFX_Wizzard_BF - [Modules - All OS]

Share your advanced PureBasic knowledge/code with the community.
walbus
Addict
Addict
Posts: 929
Joined: Sat Mar 02, 2013 9:17 am

Re: Bucket Fill advanced & Sprite support for Images and Can

Post by walbus »

Yep, fixed
Last edited by walbus on Sat Dec 23, 2017 4:50 pm, edited 6 times in total.
infratec
Always Here
Always Here
Posts: 6817
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: Bucket Fill advanced & Sprite support for Images and Can

Post by infratec »

On monday I can look if I find something for the Linux stuff.
Here on windows it works as expected (PB 5.50)

Bernd
walbus
Addict
Addict
Posts: 929
Joined: Sat Mar 02, 2013 9:17 am

Re: Bucket Fill advanced & Sprite support for Images and Can

Post by walbus »

@infratec
yep, make a look,

All other ist fixed, now
Last edited by walbus on Sat Dec 23, 2017 4:51 pm, edited 2 times in total.
WilliamL
Addict
Addict
Posts: 1214
Joined: Mon Aug 04, 2008 10:56 pm
Location: Seattle, USA

Re: Bucket Fill advanced & Sprite support for Images and Can

Post by WilliamL »

Hey walbus!

The new version works perfectly on my Mac. Both the Image and Canvas examples work fine. Even the plane moves!

Thanks for the update.
MacBook Pro-M1 (2021), Sonoma 14.3.1 (CLT 15.3), PB 6.10b7 M1
walbus
Addict
Addict
Posts: 929
Joined: Sat Mar 02, 2013 9:17 am

Re: Bucket Fill advanced & Sprite support for Images and Can

Post by walbus »

Hi WilliamL
thanks for this nice hint
So, i can update just in time the codes...

Regards Werner
infratec
Always Here
Always Here
Posts: 6817
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: Bucket Fill advanced & Sprite support for Images and Can

Post by infratec »

Hi,

small hint:

Code: Select all

If Not *drawing_buffer_grabed_image
  ProcedureReturn -2
EndIf
Should be

Code: Select all

If Not *drawing_buffer_grabed_image
  StopDrawing()
  ProcedureReturn -2
EndIf
Else you come into trouble if your code ever reaches this point.

Bernd
walbus
Addict
Addict
Posts: 929
Joined: Sat Mar 02, 2013 9:17 am

Re: Bucket Fill advanced & Sprite support for Images and Can

Post by walbus »

Yeah,
thanks Bernd, fixed....
User avatar
Keya
Addict
Addict
Posts: 1891
Joined: Thu Jun 04, 2015 7:10 am

Re: Bucket Fill advanced & Sprite support for Images and Can

Post by Keya »

very cool work walbus!
btw this pic you posted earlier in the thread reminds me of Photoshop's Content-Aware Fill (which blew my mind when Adobe first released pics of it a few years agol!) :)
is it a similar or related algorithm or something completely different?
btw i just found this link at the Content-Aware Fill page that shows the technique Photoshop is using! fascinating! :)
http://www.wisdom.weizmann.ac.il/~visio ... etion.html
Image
walbus
Addict
Addict
Posts: 929
Joined: Sat Mar 02, 2013 9:17 am

Re: Bucket Fill advanced & Sprite support for Images and Can

Post by walbus »

Many thanks Keya
Last edited by walbus on Sat Dec 23, 2017 4:38 pm, edited 7 times in total.
User avatar
Demivec
Addict
Addict
Posts: 4086
Joined: Mon Jul 25, 2005 3:51 pm
Location: Utah, USA

Re: Bucket Fill advanced & Flood Fill & Sprite & Texture sup

Post by Demivec »

walbus wrote:Codes updated d31 m12 y2016
Thanks for the continuing updates and improvements.

You made a possible goof, you posted the same code for 'BF Canvas' as you did for 'BF Image' in the first messages.
walbus
Addict
Addict
Posts: 929
Joined: Sat Mar 02, 2013 9:17 am

Re: Bucket Fill advanced & Flood Fill & Sprite & Texture sup

Post by walbus »

Many thanks Demivec
Last edited by walbus on Sat Dec 23, 2017 4:34 pm, edited 2 times in total.
User avatar
Andre
PureBasic Team
PureBasic Team
Posts: 2056
Joined: Fri Apr 25, 2003 6:14 pm
Location: Germany (Saxony, Deutscheinsiedel)
Contact:

Re: Bucket Fill advanced & Flood Fill & Sprite & Texture sup

Post by Andre »

Even if I don't have a need for now, I took a quick look and it looks like a very powerful GFX package.
Good is the providing of a complete source code package, which makes it a lot easier (even for a small test) than collecting and updating all codes from the forum thread.

So thanks a lot and keep up the good work! :D
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)
walbus
Addict
Addict
Posts: 929
Joined: Sat Mar 02, 2013 9:17 am

Re: Bucket Fill advanced & Flood Fill & Sprite & Texture sup

Post by walbus »

Many Thanks Andre
Last edited by walbus on Sat Dec 23, 2017 4:39 pm, edited 5 times in total.
Ionic Refugee
User
User
Posts: 12
Joined: Sat Aug 11, 2007 8:58 pm

Re: BucketFill advanced - GFX for PB

Post by Ionic Refugee »

What license is this source code is released under?
walbus
Addict
Addict
Posts: 929
Joined: Sat Mar 02, 2013 9:17 am

Re: BucketFill advanced - GFX for PB

Post by walbus »

BSD 2-clause “Simplified” License - You found in the download packet
Last edited by walbus on Sun Dec 24, 2017 11:24 am, edited 3 times in total.
Post Reply