Codes updated d21 m01 y2018
Fixes, changes, enhancements, new demo codes, new functions
As sample :
This function can convert on the fly, images, PB sprites, canvas
Also the function can create images and PB sprites
Code: Select all
; This function change the brightness, color, contrast - The function works with images, PB sprites, canvas
; The parameters are percent based - positive and negative values
; Source and destination must have the same size
; mode 0 = without creating a new output - mode 1 create a image - mode 2 create a PB sprite
; sprite_mode - Same PB function call for PB sprite creating
; Tree grey modes available mode=1, mode=2, mode=3 - mode=1 is more neutral
Declare Image_coloring_BF(source_ID, destination_ID,
change_red.f=0,
change_green.f=0,
change_blue.f=0,
change_contrast.f=0,
change_brightness.f=0,
change_intensity.f=0,
mode_grey=0,
mode=0,
sprite_mode=0)
This is a mighty function for output resized images, exactely positioned in a defined rectangle, any sizes
The function can handle a background grid, background colors, images with alpha channel
Can output as images or PB sprites
Primary this function is a complete image player for all things
Code: Select all
Declare FitImage_BF(mode, image_ID,
fit_width, ; Fit image to this width
fit_height, ; Fit image to this height
background_color=$DCDCDC, ; Background color
padding=0, ; Padding
grid_color=$FFFFFF, ; Grid color
grid_size=5, ; Grid size
grid_tiling=10, ; Grid tiling
frame_color=$FFFFFF, ; Frame color
frame_size=3, ; frame_size
sprite_mode=0) ; Sprite mode for PB sprite output
; mode 0 = image output
; mode 1 = Without background
; mode 2 = PB sprite output
; mode 3 = Without output - You can use GetFitSize_Width_BF and GetFitSize_Height_BF for get the calculated width and height
; This function can output images and PB sprites
; Look the FitImage demo cod
; This function load and rotate automaticaly photos with EXIF data
; Important as sample for many "Handy" photos
; The function is parameter compatible to LoadImage and can replace it
; Its more and more needed for primary using this function
Code: Select all
Declare LoadPhoto_BF(image_ID, path$)
Sample code for this three functions : "BucketFill_FitImage_demo.pb"
And more...