Page 4 of 13

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

Posted: Sun Jan 21, 2018 11:25 pm
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

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

Posted: Mon Jan 22, 2018 11:02 pm
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

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

Posted: Fri Jan 26, 2018 8:32 pm
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

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

Posted: Tue Jan 30, 2018 11:25 pm
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

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

Posted: Wed Jan 31, 2018 12:10 am
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 ???

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

Posted: Wed Jan 31, 2018 11:27 am
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

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

Posted: Wed Jan 31, 2018 10:51 pm
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

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

Posted: Wed Jan 31, 2018 11:23 pm
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

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

Posted: Wed Jan 31, 2018 11:43 pm
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

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

Posted: Wed Jan 31, 2018 11:59 pm
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

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

Posted: Thu Feb 01, 2018 9:00 am
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

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

Posted: Thu Feb 01, 2018 9:45 am
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

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

Posted: Thu Feb 01, 2018 10:12 am
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

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

Posted: Fri Feb 09, 2018 11:11 pm
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

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

Posted: Sun Feb 11, 2018 12:18 am
by Andre
Thank you for the further extended package.
The image encryption can become very useful for me... :mrgreen: