Integer Snippets

13 February, 2014

Just got inspired last night and decided to start a class to get the screen in "blocks" and check which one has changed to update only those.

Example for using thousand separator (,) for decimal integer numbers

Example for using thousand separator (,) for decimal integer numbers

06 February, 2013

Delphi code for Hexadecimal to Integer

28 April, 2011

Over the years I have made quite a few software programs in Delphi, and inevitably I have also come up with many useful functions. Most of them I have never published on the Internet before, now I would like to list on blog. Part 1 are functions for managing integer or real numbers, they were written very early in 1997.

03 December, 2013

Delphi code to return type of drive that contains the given (full) path.

20 March, 2018

Converts the given hexadecimal string to an integer.

17 October, 2011

Just create a new module called modEnumWindows in your project and copy this code into it. The function getWindowList does the trick.

22 November, 2015

To print out all possible subsets in lexicographic order

10 November, 2012

It will return a string of words to represent the integer part of this value.

12 March, 2013

Delphi code example to draw a gradient line

11 May, 2017

The following code uses bitwise operators to determine if an unsigned integer, x, is a power of two.

Source code to convert an integer into binary representation

28 January, 2013

Converts integer to left-zero padded string, len chars long.

Function of an integer raised in a power * and the calculation of the sum of a series of integers

Delphi code example to rotate a TBitmap at any angle

Function of an integer raised in a power * and the calculation of the sum of a series of integers (1^e+2^e....+n^e) raised in a power.

In Delphi, procedural types (method pointers) allow you to treat procedures and functions as values that can be assigned to variables or passed to other procedures and functions. Here's how to call a function (or procedure) as a parameter of another function (or procedure) : Declare the function (or procedure) that will be used as a...

19 June, 2012

Adjusts the brightness of a color by a specified amount in range -255..255.

19 June, 2012

Changes the brightness of a bitmap by a given Delta value in range -255..+255.