Category: delphi
By Default, the Delphi IDE stores the file information (version) directly in compiled Resource File (*.res), which is binary so you can’t easily edit it using text editors. Sometimes, …
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 …