GFX_Wizzard_BF - [Modules - All OS]

Share your advanced PureBasic knowledge/code with the community.
User avatar
Andre
PureBasic Team
PureBasic Team
Posts: 2056
Joined: Fri Apr 25, 2003 6:14 pm
Location: Germany (Saxony, Deutscheinsiedel)
Contact:

Re: BucketFill advanced - GFX for PB [Modules - All OS]

Post by Andre »

The new 'change_intensity' Parameter for image coloring looks good.
Also the new 'ImageFit' function could become very useful for me.

Thank you :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: BucketFill advanced - GFX for PB [Modules - All OS]

Post by walbus »

Hi Andre
This are very helpfull new functions

There is now a block of new features around proportional image scaling.
Was still some work until everything worked perfectly and was complete.
I think she'll be very useful to you.

I will update some demo codes to the new functions in the near future

Demo codes to look the new functions :
BucketFill_FitImage_demo_0.pb
BucketFill_FitImage_demo_0.pb
BucketFill_GIF_simple_and_extreme_fast_on_windowed_screen_PB_Sprite_output_4.pb

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

Re: BucketFill advanced - GFX for PB [Modules - All OS]

Post by walbus »

Codes updated d26 m01 y2018

Several new functions around GIF and coloring have been added

It is now possible to convert GIF on the fly to CSS Sprite sheets
Since BF supports Sprite Sheets in the simplest way, this offers fantastic possibilities

GIF can now be colored, also as grayscale image
GIF can also be colored with invisible color

Parts of a GIF or image can be colored

So it is possible to colorize only a section of an image, PB sprites or canvas
This selection can also be inverted
Brightness, contrast, colors, intensity and more can be changed as desired

A demo code showing many of the new features can be found in the download package
"BucketFill_GIF_and_Image_and_coloring_simple_and_fast_on_canvas. pb"
This demo code can display and colorize images and GIFs
It is a complete basic code for an image editor with on demand functions

Due to the fact that PB is not able to display the invisible color of a GIF,
the extended GIF handling as sprite is extremely difficult.
BF can handle this problem and provide simple to use solutions
walbus
Addict
Addict
Posts: 929
Joined: Sat Mar 02, 2013 9:17 am

Re: BucketFill advanced - GFX for PB [Modules - All OS]

Post by walbus »

Codes updated d 30 m01 y2018

New functions added

Sprite GIF and CSS tool added
Look for the new folder in the download package
"BucketFill_Sprite_Tool"

With this tool you can solve many problems with GIF and Sprites

Fitted for Image_coloring_BF and Image_coloring_partition_BF

The tool can coloring GiF frames and Images
Can clean sprite masks
Can handling color distance
Can Generate CSS sheets from GIF
Can save as images or PB sprites
On demand GIF animation
And more....

Image
Last edited by walbus on Wed Feb 07, 2018 6:59 pm, edited 2 times in total.
User avatar
VB6_to_PBx
Enthusiast
Enthusiast
Posts: 617
Joined: Mon May 09, 2011 9:36 am

Re: BucketFill advanced - GFX for PB [Modules - All OS]

Post by VB6_to_PBx »

Codes updated d 30 m01 y2018

New functions added

Sprite GIF and CSS tool added
Look for the new folder in the download package
"BucketFill_Sprite_Tool"
walbus,
many thanks for continuing to improve and update this software

would it be possible to release same PB Code that will work with older PB versions like PB 5.31 to 5.43 ???
 
PureBasic .... making tiny electrons do what you want !

"With every mistake we must surely be learning" - George Harrison
walbus
Addict
Addict
Posts: 929
Joined: Sat Mar 02, 2013 9:17 am

Re: BucketFill advanced - GFX for PB [Modules - All OS]

Post by walbus »

Hi VB6_to_PBx

Download the latest BF Packet
BF is now compatible with older PB versions < PB560 :wink:

With the new GIF to CSS tool, GIF can now be used with ease in PB versions smaller than 560.

As an example, BF has functions that can optionally output GIF frames and CSS sheets.

Have fun
User avatar
Andre
PureBasic Team
PureBasic Team
Posts: 2056
Joined: Fri Apr 25, 2003 6:14 pm
Location: Germany (Saxony, Deutscheinsiedel)
Contact:

Re: BucketFill advanced - GFX for PB [Modules - All OS]

Post by Andre »

Not sure yet, for which cases I could use all the new functions... :wink:

But thank you very much for the continuous effort and further development. Very powerful and a large set of GFX functions. Thank you for the public release! :D
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)
User avatar
VB6_to_PBx
Enthusiast
Enthusiast
Posts: 617
Joined: Mon May 09, 2011 9:36 am

Re: BucketFill advanced - GFX for PB [Modules - All OS]

Post by VB6_to_PBx »

walbus wrote:Hi VB6_to_PBx

Download the latest BF Packet
BF is now compatible with older PB versions < PB560 :wink:

With the new GIF to CSS tool, GIF can now be used with ease in PB versions smaller than 560.

As an example, BF has functions that can optionally output GIF frames and CSS sheets.

Have fun
all the examples i tested so far have this :

Code: Select all

CompilerIf #PB_Compiler_Version<560
  MessageRequester ("Hint" , "PureBasic Version =>560 needed for this demo Code")
  End
CompilerElse
and if i comment that out

it fails or next stops at this

Code: Select all

[16:18:34] [COMPILER] Line 7550: The module procedure 'GetGif_Frames_in_a_row_BF()' has been declared but not defined.
same results for all the various PB versions from 5.31 thru 5.46

works great on PB5.61
 
PureBasic .... making tiny electrons do what you want !

"With every mistake we must surely be learning" - George Harrison
walbus
Addict
Addict
Posts: 929
Joined: Sat Mar 02, 2013 9:17 am

Re: BucketFill advanced - GFX for PB [Modules - All OS]

Post by walbus »

Hi
You cannot start demo files with GIF in the file name, because PB <560 does not support GIF.
All others run, over 120 different demo files, i think :wink:

The undefined variable was only a temporary error, which I overlooked during a new upload this evening.

Load a new package

Regards Werner
Last edited by walbus on Thu Feb 01, 2018 12:00 am, edited 1 time in total.
User avatar
VB6_to_PBx
Enthusiast
Enthusiast
Posts: 617
Joined: Mon May 09, 2011 9:36 am

Re: BucketFill advanced - GFX for PB [Modules - All OS]

Post by VB6_to_PBx »

walbus wrote:Hi
You cannot start demo files with GIF in the file name, because PB <560 does not support GIF.
All others run, over hundered different files, i think

The undefined variable was only a temporary error, which I overlooked during a new upload this evening.

Load a new package

Regards Werner

walbus ,
thank you very much ... now works on PB v5.40 upwards
 
PureBasic .... making tiny electrons do what you want !

"With every mistake we must surely be learning" - George Harrison
walbus
Addict
Addict
Posts: 929
Joined: Sat Mar 02, 2013 9:17 am

Re: BucketFill advanced - GFX for PB [Modules - All OS]

Post by walbus »

Yes, I fixed some more of the new features last night.
Now everything has been extensively tested and runs smoothly.
I haven't tested versions smaller than 540 because I don't think it makes sense to use them.
The current 546 is quite optimal
Unicode is beautiful and nice, but not necessary for many things in the western world

You don't need the GIF function
With the new tool above you can convert GIF to CSS sheets , very simple
BF can output these sheets with the same routines as GIF frames
Working with the sheets is much more comfortable than working with GIF
Today I make a function that integrates all frame data directly into the Sheets
If you then have a GIF, you simply convert it to a sheet and can use it exactly like a GIF, only easier and better
The BF routines can freely scale, rotate, colorize, clip, tile, with alpha blending, color distance, gradient colors
All of this can be combined and extended almost endlessly
The advantage of BF is its open structure, the arbitrary combinability of all functions, stability and faultlessness
User avatar
VB6_to_PBx
Enthusiast
Enthusiast
Posts: 617
Joined: Mon May 09, 2011 9:36 am

Re: BucketFill advanced - GFX for PB [Modules - All OS]

Post by VB6_to_PBx »

I haven't tested versions smaller than 540 because I don't think it makes sense to use them.
i tested it on v5.31 , did not work, but v5.31 does not have the VectorDrawing library
and PB 5.40 upward does have it
 
PureBasic .... making tiny electrons do what you want !

"With every mistake we must surely be learning" - George Harrison
walbus
Addict
Addict
Posts: 929
Joined: Sat Mar 02, 2013 9:17 am

Re: BucketFill advanced - GFX for PB [Modules - All OS]

Post by walbus »

Hi
BF uses the Vector Library primary for rotating stepless images
You can fix this yourself
Just start the BucketFill_advanced.pbi (Not a demo file) with PB<540
PB then jumps to the first function using the Vector library

Change the procedures like this :

Code: Select all

CompilerIf Not #PB_Compiler_Version<540
Procedure Rotate_This_or_That
 ; content with vector call
Endprocedure
compilerendif
That's all

I've tested it, BF works also with PB Version 530

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

Re: BucketFill advanced - GFX for PB [Modules - All OS]

Post by walbus »

Codes updated d09 m02 y2018

Special (new created) QAES based AES image crypter added
This crypter encrypt and decrypt images complete inside your application and create not temporary files :wink:
Works similar CBC mode with automatic randomized IV
Can create and read all from PB supported images
User avatar
Andre
PureBasic Team
PureBasic Team
Posts: 2056
Joined: Fri Apr 25, 2003 6:14 pm
Location: Germany (Saxony, Deutscheinsiedel)
Contact:

Re: BucketFill advanced - GFX for PB [Modules - All OS]

Post by Andre »

Thank you for the further extended package.
The image encryption can become very useful for me... :mrgreen:
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)
Post Reply