BitmapCreatorEffects class includes all kinds of very simple to use image effects.
The class is cross platform and compatible with B4J (v6.3+), B4A (v8.3+) and B4i (v5.0+).
Example:
The attached examples demonstrate the various methods.
BitmapCreatorEffects depends on XUI and BitmapCreator libraries.
Note that all of the example code is implemented in a class that is shared between the three projects. This way we can get 99% code reuse.
Updates
Version 1.31 -New FadeBorders effect. See post #9: https://www.b4x.com/android/forum/threads/b4x-bitmapcreator-effects.93608/#post-672188
Version 1.21 - New ReplaceColor method.
Version 1.20 - Added PieceSize to ImplodeAnimated and added FlipVertical and FlipHorizontal methods.
Version 1.10 - Adds TransitionAnimated method to transition between two bitmaps.
The Example class from the B4J project can also be used in the other projects.
Latest version is distributed as a b4xlib library.
The class is cross platform and compatible with B4J (v6.3+), B4A (v8.3+) and B4i (v5.0+).
Example:
B4X:
'Greyscale an image:
Dim GreyImage As B4XBitmap = effects.GreyScale(ExistingBmp)
'Blur an image:
Dim BlurImage As B4XBitmap = effects.Blur(ExistingBmp)
The attached examples demonstrate the various methods.
BitmapCreatorEffects depends on XUI and BitmapCreator libraries.
Note that all of the example code is implemented in a class that is shared between the three projects. This way we can get 99% code reuse.
Updates
Version 1.31 -New FadeBorders effect. See post #9: https://www.b4x.com/android/forum/threads/b4x-bitmapcreator-effects.93608/#post-672188
Version 1.21 - New ReplaceColor method.
Version 1.20 - Added PieceSize to ImplodeAnimated and added FlipVertical and FlipHorizontal methods.
Version 1.10 - Adds TransitionAnimated method to transition between two bitmaps.
The Example class from the B4J project can also be used in the other projects.
Latest version is distributed as a b4xlib library.
Attachments
-
69.4 KB Views: 824
-
62.8 KB Views: 369
-
196.4 KB Views: 408
-
3.1 KB Views: 429
Last edited: