It is currently Mon Dec 11, 2017 1:24 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 53 posts ]  Go to page 1, 2, 3, 4  Next
Author Message
 Post subject: BucketFill advanced - GFX for PB [Modules - All OS]
PostPosted: Tue Nov 08, 2016 8:12 pm 
Offline
Enthusiast
Enthusiast

Joined: Sat Mar 02, 2013 9:17 am
Posts: 683
Bucket Fill advanced GFX tools & Flood Fill & Sprites & Texture & Photo & Progressbar and bar graph support

Graphic enhancement for PB graphic functions

Sprites with alpha blending and flicker free animation also for canvas


Enhanced GIF handling functions


100% full editable source codes :!:

Rock stable :!:

Can directly draw on canvas gadgets, PB sprites, images and screen

This tool create all graphic effects and sprites self, screen mode is available, but not needed ! :o

Works fine on Windows, Linux and Macintosh

Enhance your Graphic !

http://www.nachtoptik.de
http://www.quick-aes-256.de
Author W. Albus ©

The codes are to large for the forum
Please load the latest code packet from my website

http://www.nachtoptik.de

What can do this tool :
Can output all PB graphic functions with textures, images or photos
Can output all things animated directly on images and canvas with a function similar PB FlipBuffers
The BF function can directly output on images, PB sprites, canvas, screen, full automatic
Simple extensible with many functions from the PB graphic librarys
Supporting also the vector graphic library
CSS sprite support
Inclusive creating tool for creating CSS image sprite sheets from GIF pictures
Enhanced GIF output with many features
GIF output same sprites directly on images, canvas and screen
Can output sprites on images and canvas without a needed screen mode
Rotating and mirroring for sprites, images, photos and textures
Functions for creating professional photo retouching tools
Functions for creating phantastic effects with any photos, textures or pictures
Replacing colors with other colors
BucketFill - Replacing colors with textures, pictures or photos
FloodFill - Supports colors, textures, pictures or photos
Recoloring textures and sprites
Output sprites and textures with invisible color and alpha blending
Color distance function for sprites invisible color
Color distance function for texture bucket fill and flood fill
Color distance function for standard fill with a color
Simple enhancing many PB standard graphic functions
Can use textures or sprites with any size
Can use masked sprites
Can use Images with alpha channel as sprites
Can create high quality standard sprites with included mask from any pictures with alpha channel
Can create pictures with alpha channel from masked sprites
Can use JPG encoded standard sprites with included mask
Can use all self maded sprites
Mask cleaning function for JPG encoded sprites available with the special color distance function for sprites
Using defined parties from textures or sprites
Creating pattern with any sizes from sprites and textures or both combined
Declaring start position for each texture or sprite output
Multiple texture or sprite output
Automatic tilling function
Automatic scrolling function
Can output fine looking seamless photos (Works also with textures)
Manipulating FloodFill Buffer available
Manipulating BucketFill Buffer available
FloodFill and BucketFill Buffer register any modified pixel automatically
You can endless create and manipulate sprites and textures
All functions are combinable
And more....

Many samples come directly added to the modules

Amazing possibilities :o
Image
The BF Image button can make fine seamless animations, tousends variants available

BF advanced can simple output seamless photos directly on images or canvas (Works also with textures)
Image

Image

BucketFill advanced can automatically create high quality masked sprites from pictures with alpha channel
Image

Be creative, make your own professional photo retouching tool with BucketFill advanced
It is simple, you get all things you need for developing very quick and high efficient photo retouching :shock:
Image

Normaly you can not use masked sprites with JPG compression as sprites
Compression artifacts in the as invisible declared color you become not invisible
Same problems you get mostly you use fill or retouch functions for creating sprite masks from any pictures
BucketFill advanced can automatically clean the sprite masks
So you can use also lossly compressed images or any hand maded sprites simple with BF advanced :wink:
Image

Looking, right the originale photo, left the demo result, created in one minute !
The needed demo code for texture and photo brush you found here :
viewtopic.php?f=12&t=67278
Image

A phantastic feature - BucketFill advanced can output all PB graphic functions with textures, images, photos
Directly on images and canvas - with alpha blending and flicker free animations
:shock:
Image

Image

BoxGo_BF and LineGo_BF - Very nice animated boxes and lines
Image

DrawText_BF - Nearly endless abilities for text output
Image

Image

Image

Image

Image

Inclussive progressbar professional (PP)
Image

Demo videos :

Sprite and GIF output

http://www.quick-aes-256.de/Video/Sprite_and_GIF_1.mp4


A little video for demonstrating how sprite output works on BF

http://www.quick-aes-256.de/Video/Sprite_Demo_1.mp4


A little vodeo for demonstrating triple buffering on two canvas and a windowed screen

http://www.quick-aes-256.de/Video/Canva ... reen_1.mp4


A Video for demonstrating how progressbar professional (PP) works

http://www.quick-aes-256.de/Video/Progressbar_1.mp4


A Video for demonstrating BoxGo and LineGo, very nice animations for lines and boxes

http://www.quick-aes-256.de/Video/BoxGo_1.mp4


Color distance sprite demo on windowed screen

http://www.quick-aes-256.de/Video/Sprit ... Screen.mp4

_________________
http://www.nachtoptik.de - The home of Bucketfill_advanced (BF) and QUICK_AES_256


Last edited by walbus on Wed Dec 06, 2017 10:43 pm, edited 352 times in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Replace any colors with textures - little base code
PostPosted: Tue Nov 08, 2016 9:15 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Jun 30, 2007 8:04 pm
Posts: 3108
Can you provide some example images and their result?

_________________
Image


Top
 Profile  
Reply with quote  
 Post subject: Re: Replace any colors with textures
PostPosted: Tue Nov 08, 2016 9:23 pm 
Offline
Enthusiast
Enthusiast

Joined: Sat Mar 02, 2013 9:17 am
Posts: 683
Hi,
the demo output is now enhanced...

_________________
http://www.nachtoptik.de - The home of Bucketfill_advanced (BF) and QUICK_AES_256


Last edited by walbus on Mon Jan 16, 2017 8:46 pm, edited 89 times in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Replace any colors with textures - little base code
PostPosted: Wed Nov 09, 2016 7:42 am 
Offline
PureBasic Expert
PureBasic Expert

Joined: Sun Aug 08, 2004 5:21 am
Posts: 3006
Location: Netherlands
If you don't mind using a recent PB version, you can also use VectorSourceImage to fill with a texture.

_________________
MacOS 10.13.1 High Sierra, PB 5.60 x64


Top
 Profile  
Reply with quote  
 Post subject: Re: Replace any colors with textures
PostPosted: Wed Nov 09, 2016 8:39 am 
Offline
Enthusiast
Enthusiast

Joined: Sat Mar 02, 2013 9:17 am
Posts: 683
Hi Wilbert, thanks for the hint, but my tool works other

_________________
http://www.nachtoptik.de - The home of Bucketfill_advanced (BF) and QUICK_AES_256


Last edited by walbus on Mon Jan 16, 2017 9:09 pm, edited 20 times in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Replace any colors with textures
PostPosted: Wed Nov 09, 2016 6:32 pm 
Offline
Enthusiast
Enthusiast

Joined: Sat Mar 02, 2013 9:17 am
Posts: 683
Now, today, i have maked a complete procedure

It works very fine

What is new :
Simplification
Massive speed up
Multiple selection and replacing
Simple using

_________________
http://www.nachtoptik.de - The home of Bucketfill_advanced (BF) and QUICK_AES_256


Last edited by walbus on Wed Mar 08, 2017 8:57 pm, edited 2 times in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Replace colors with textures - Full featured procedure
PostPosted: Thu Nov 10, 2016 3:17 am 
Offline
Addict
Addict
User avatar

Joined: Sat Jun 30, 2007 8:04 pm
Posts: 3108
I see how it works now. There is a similar feature for bucket filling with a pattern in Photoshop. Thanks for the illustration. :)

_________________
Image


Top
 Profile  
Reply with quote  
 Post subject: Re: Replace colors with textures - Full featured procedure
PostPosted: Thu Nov 10, 2016 4:25 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Mon May 09, 2011 9:36 am
Posts: 346
if you move the Window partially off Screen and back again ,
then that part of the Texture gets erased :(

How can erasing be prevented ??

_________________
 
PureBasic .... making little electrons do what you want !


Top
 Profile  
Reply with quote  
 Post subject: Re: Replace colors with textures - Full featured procedure
PostPosted: Thu Nov 10, 2016 8:22 am 
Offline
Enthusiast
Enthusiast

Joined: Sat Mar 02, 2013 9:17 am
Posts: 683
Hi Mistrel
I would make a Fill function with textures.
Then, i have seen, this here is a very better solution for many things.
A standard Fill with textures, i think, i make the next time

@VB6_to_PBx
This is a angry Windows issue

What you can do !
A Picture as Window background as sample fix this, or canvas output

Looking in the PB documentation for #PB_Event_Repaint

_________________
http://www.nachtoptik.de - The home of Bucketfill_advanced (BF) and QUICK_AES_256


Last edited by walbus on Wed Mar 08, 2017 8:59 pm, edited 2 times in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Replace colors with textures - Full featured procedure
PostPosted: Thu Nov 10, 2016 1:35 pm 
Offline
Enthusiast
Enthusiast

Joined: Thu Aug 30, 2007 11:54 pm
Posts: 653
Location: right here
would not a CustomFilterCallback() work for this too? drawing one image onto the other and in the callback check for the target color, and if pixel is appropriate draw the source color (or even blend it).

for the bucket/floodfill there is FillArea() but that only supports a fixed border color.


Top
 Profile  
Reply with quote  
 Post subject: Re: Replace colors with textures - Full featured procedure
PostPosted: Thu Nov 10, 2016 2:38 pm 
Offline
Enthusiast
Enthusiast

Joined: Sat Mar 02, 2013 9:17 am
Posts: 683
@NULL
Yep, it's simple to add.

_________________
http://www.nachtoptik.de - The home of Bucketfill_advanced (BF) and QUICK_AES_256


Last edited by walbus on Sat Nov 12, 2016 5:40 pm, edited 2 times in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Replace colors with textures - Full featured procedure
PostPosted: Thu Nov 10, 2016 9:17 pm 
Offline
Enthusiast
Enthusiast

Joined: Thu Aug 30, 2007 11:54 pm
Posts: 653
Location: right here
but your code can be adjusted for use with sprites, which are not officially supported by CustomFilterCallback().


Top
 Profile  
Reply with quote  
 Post subject: Re: Replace colors with textures - Full featured procedure
PostPosted: Thu Nov 10, 2016 9:23 pm 
Offline
Enthusiast
Enthusiast

Joined: Sat Mar 02, 2013 9:17 am
Posts: 683
@NULL
The tool use not hardware sprites
It create the sprites self - Exactely shapes (Brushes)

_________________
http://www.nachtoptik.de - The home of Bucketfill_advanced (BF) and QUICK_AES_256


Last edited by walbus on Tue Apr 25, 2017 8:15 am, edited 2 times in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Bucket Fill advanced & Sprite support for Images and Can
PostPosted: Sat Nov 19, 2016 4:22 pm 
Offline
Enthusiast
Enthusiast

Joined: Sat Mar 02, 2013 9:17 am
Posts: 683
Codes updated : d20 m11 y2016

Handling for animated sprites enhanced and simplified

Functions for sprite buffer handling and a internal Delay timer function added

_________________
http://www.nachtoptik.de - The home of Bucketfill_advanced (BF) and QUICK_AES_256


Top
 Profile  
Reply with quote  
 Post subject: Re: Bucket Fill advanced & Sprite support for Images and Can
PostPosted: Sun Nov 20, 2016 12:31 am 
Offline
Enthusiast
Enthusiast

Joined: Sat Mar 02, 2013 9:17 am
Posts: 683
A little Demo
What i must do for fill a complete window with a texture ?

Only this :
Code:
canvas_width=1200 :canvas_height=800

window_ID=OpenWindow(#PB_Any, #PB_Ignore, #PB_Ignore, canvas_width, canvas_height, "", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)

canvas_ID=CanvasGadget(#PB_Any, canvas_x, canvas_y, canvas_width, canvas_height)

texture_ID=LoadImage(#PB_Any, #PB_Compiler_Home+"Examples\Sources\Data\Background.bmp")

Debug BucketFill_Canvas(0, canvas_ID, window_ID, texture_ID)

Repeat : win_event=WaitWindowEvent() : If win_event=#PB_Event_CloseWindow : Break : EndIf : ForEver

_________________
http://www.nachtoptik.de - The home of Bucketfill_advanced (BF) and QUICK_AES_256


Last edited by walbus on Sun Nov 20, 2016 12:43 am, edited 1 time in total.

Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 53 posts ]  Go to page 1, 2, 3, 4  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: Majestic-12 [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye