Category: delphi
The BMP is uncompressed image file type, which is major supported in most devices (especially legacy devices). It contains almost raw image pixel data (e.g. 24-bit, RGB). The JPEG …
If you want to get the file size in bytes for a file, you can use the following function in Delphi/Object Pascal. // maxium supports 2G function getFileSizeInBytes(const fn: …
In Delphi/Object Pascal, the random function returns a float number that is between 0 and 1 inclusive. If you want to get a random number between two float numbers …
This post gives a few C++ implementations that fill an array of integers by every 4 byte. Please note that the function FillChar works on the byte level (filling …
The Delphi/Object Pascal provides a keyword absolute, which you can also find examples at this post.. Basically, the keyword absolute allows you to specify the alias of a variable. …