Change Color of Bitmap [B4X] [BitmapCreator]
With this snip, you can easy change a Bitmap/Icon Color.
@Alexander Stolte · 2018-07-27
Units and Scales [XUI2D]
There are all kinds of units and scales in XUI2D. It is important to understand them and use them consistently.
@Erel · 2018-07-19
Flappy Bird Example [XUI2D]
Example of a "flappy bird" game. The images and sounds are based on Clumsy Bird open source project: https://github.com/ellisonleao/clumsy-bird (GPL license) Interesting points: - The moving ground required some work to correctly adjust its position. It moves a bit backwards and then jump forward. - The pipes are all drawn from the same two images, one for the top pipes and one for the bottom pipes. The default behavior of the built-in graphic cache is to draw the full image. A delegate class was added and it creates the drawing task with the specific part. - I''ve added another ImageView named ivMessages. It is used for the "get ready" and "game over" messages. - The bird is rotated based on its velocity vector direction
@LucaMs · 2018-07-19
Sharing modules and classes [B4X]
In newer versions of B4A (v7.8), B4J (v6.0) and B4i (not yet released) it is simple to share code modules between projects, including projects targeting other platforms.
@Erel · 2018-07-18
Hello World - First app [XUI2D]
The purpose of this tutorial is to help you run your very first app based on XUI2D. A great benefit of XUI2D being cross platform is that you can do most of the development in B4J. Developing directly on the desktop is simpler and faster. Later you can create B4A and B4i projects and add references to the exact same modules.
@walterf25 · 2018-07-18
Cross platform game engine - first beta version is released! [XUI2D]
The purpose of this framework is to allow developers to build cross platform 2D games.
@Mark Turney · 2018-07-17
Automatically increment file names [B4X]
if you download a file with Google Chrome for example and you have you''ve already downloaded this one time, then a number will appear next to it. This is now easy possible with this peace of code.
@Alexander Stolte · 2018-07-17
xRegexField - regex validated data input [B4X] [XUI]
please find attached my porting to B4X/XUI of an old and very useful B4J class from @Erel. Fundamentally it is an EditText (or TextField) with a few properties useful to check user input and react accordingly. Pattern: used to hold a regex pattern in order to validate input data SafeValue: a backup value to be returned if input data is invalid ForceSafeVal: if True forces the class to return the SafeValue above BorderColor: border color to signal the user his/her data doesn''t match the pattern BorderWidth: border width used with BorderColor above BorderRadius: border radius used with BorderColor above LetFocusOut: if True allows the focus to leave the control even if data is invalid KbdType (B4A only): specifies one of three possible soft keyboards (TEXT, NUMBERS, DECIMAL_NUMBERS)
@udg · 2018-07-16
CropView [B4X] [XUI]
Cross platform, custom view that allows the user to select the cropping window.
@Erel · 2018-07-10
MJPEG decoder [B4X] [class]
An implementation of a MJPEG over Http decoder.
@Erel · 2018-07-09
Find Minimum Bounding Rectangle [B4X] [BitmapCreator]
Input: A Bitmap or B4XBitmap. Output: A rectangle with the boundaries of the non-transparent area.
@Erel · 2018-07-08
GRLib (Assorted Functions)
I would like to share my library created. I have converted some of the Java Inline code such as isNumeric(), getMD5(), bytes2Hex(), getSHA1() and i have also added the following; 1. generateToken(param1) - This function generates a token using a random secure. 2. nToWord(tnNumber) - This function converts a number or amount into words.
@Cassie · 2018-06-27
Check equality of two files
A way to compare two files
@fredo · 2018-06-27
OkHttpUtils2 / iHttpUtils2 / HttpUtils2 source code [B4X]
The attached code is compatible with B4A, B4J and B4i. The various HttpUtils2 libraries are included in the IDE installation as internal libraries. The source code is attached here.
@Erel · 2018-06-25
Faster* DrawPolygon Method [B4X] [XUI]
You can draw polygons with B4XCanvas.DrawPath. The following code calls B4XCanvas.DrawPath on B4A and B4i and calls a different method in B4J. DrawPath in B4J is slower than the other drawing methods as it requires clipping the canvas (it is only required in B4J). To summarize, only use this code if you encountered a performance issue with B4XCanvas.DrawPath in B4J.
@Erel · 2018-06-24
Convert bitmap to BMP format [B4X]
Input: B4XBitmap / Bitmap / Image. Output: array of bytes with the BMP format.
@Erel · 2018-06-24
GitLab: Syntax highlighting for B4X files
When using an online repository such as GitLab, you can add a file named ".gitattributes" with the following content
@wonder · 2018-06-23
Arrow throwing
Arrow throwing
@hookshy · 2018-06-18
Calculate Heat Index (B4x compatible)
I wanted to cycle between the actual air temperature and heat index on my little ESP-12E pool project. This can be used in any B4x IDE. It requires a known temperature and humidity. Calculating the heat index requires the temperature to be in Fahrenheit, so if working in Celsius, you need to convert it first: F = (C x 1.8) + 32. To convert Fahrenheit back to Celcius: C = (F - 32) / 1.8
@Kevin · 2018-06-17
Maximizing Performance with BC [B4X] [BitmapCreator]
1. This tutorial is about BitmapCreator v3.5+. 2. It is relevant for B4A, B4i and B4J. 3. The features discussed are only needed when making hundreds or more drawings per second.
@Erel · 2018-06-07
BitmapCreator Performance [B4X]
I made some tests to better understand the performance of BitmapCreator in the different platforms. The test starts by creating many boxes with random gradient colors and then it moves all of them each iteration.
@Erel · 2018-06-07
Tip: Always set FTP.PassiveMove to True [B4X]
Tip: Always set FTP.PassiveMove to True [B4X]
@Erel · 2018-05-29
SD: RadarProgressView (With Source Code) [B4X] [XUI]
ProgressBar that simulates a submarine radar.
@Star-Dust · 2018-05-29
Erel Teaches Programming - video tutorials [B4X]
Erel Teaches Programming - video tutorials [B4X]
@Erel · 2018-05-28
SlidingPuzzleView [B4X] [XUI]
SlidingPuzzleView is a custom view for sliding puzzle games
@Star-Dust · 2018-05-27
MyMaterial.Show
Eversince I discovered it, my curiosity grew about ABMaterial. ABMaterial.Show intends to be a GUI RAD tool to create the UI designs of your web apps, you can then write the code for the rest.
@Mashiane · 2018-05-24
ExpandView - source code [B4X] [XUI]
I wanted to create an animation
@LucaMs · 2018-05-19
Shadows [B4X] [XUI]
I have created a very simple little code to create the shadow to the images in the views, it can also be used to transform colors into shades of gray.
@Star-Dust · 2018-05-16
Canvas Draw Round Rect, Arcs, Ovals [B4X] [XUI]
XUI v1.60 introduces a new method: DrawPath. With this, now we have more options to draw: Arc, Oval, RoundRect, LineTo
@ivan.tellez · 2018-05-16
Blur Image [B4X] [BitmapCreator]
Returns a blurred image
@Erel · 2018-05-14