ImagingUtility.pas Functions
Functions
Returns rectangle (X, Y, X + Width, Y + Height). 
Returns rectangle (R.Left, R.Top, R.Left + R.Right, R.Top + R.Bottom). 
This function fills Files string list with names of files found with FindFirst/FindNext functions (See details on Path/Atrr here). 
Calculates CRC32 for the given data. 
Ceil 
Returns smallest integer >= Val (for 5.1 returns 6). 
Clamps float value to range  
Clamps integer value to range  
Clamps integer value to Byte boundaries. 
Clamps integer value to Word boundaries. 
Clips given source bounds and dest position. 
Clips given bounds to Clip rectangle. 
Clips given source bounds and dest bounds. 
Outputs debug message - shows message dialog in Windows and writes to console in Linux/Unix. 
Fills given memory with given Byte value. 
Fills given memory with given LongWord value. 
Fills given memory with given Word value. 
Returns string representation of float number (with digit grouping). 
Returns largest integer <= Val (for 5.9 returns 5). 
Formats given message for usage in Exception.Create(..). 
Frees class instance and sets its reference to nil. 
Replacement of standard System.FreeMem procedure which checks if P is nil (this is only needed for Free Pascal, Delphi makes checks in its FreeMem). 
Frees pointer and sets it to nil. 
Returns directory where application's exceutable is located without path delimiter at the end. 
Returns file name of application's executable. 
Returns current exception object. 
Returns file extension (without "." dot) 
Returns how many mipmap levels can be created for image of given size. 
Returns time value with microsecond resolution. 
Returns time value with milisecond resolution. 
Returns total number of levels of volume texture with given depth and mipmap count (this is not depth * mipmaps!). 
Iff 
If Condition is True then TruePart is retured, otherwise FalsePart is returned. 
Iff 
If Condition is True then TruePart is retured, otherwise FalsePart is returned. 
Iff 
If Condition is True then TruePart is retured, otherwise FalsePart is returned. 
Iff 
If Condition is True then TruePart is retured, otherwise FalsePart is returned. 
Iff 
If Condition is True then TruePart is retured, otherwise FalsePart is returned. 
Iff 
If Condition is True then TruePart is retured, otherwise FalsePart is returned. 
If Condition is True then TruePart is retured, otherwise FalsePart is returned. 
If Condition is True then TruePart is retured, otherwise FalsePart is returned. 
Returns string representation of integer number (with digit grouping). 
This function returns True if running on little endian machine. 
Returns True if Num is power of 2. 
Log2 
Returns log base 2 of X. 
Returns log base 2 of integer X (max 2^30) or -1 if X is not power of 2. 
Returns True if FileName matches given Mask with optional case sensitivity. 
Max 
Returns greater of two integer numbers. 
Returns greater of two float numbers. 
Min 
Returns lesser of two integer numbers. 
Returns lesser of two float numbers. 
Returns result from multiplying Number by Numerator and then dividing by Denominator. 
Returns next power of 2 greater than or equal to Num (if Num itself is power of 2 then it retuns Num). 
Similar to RTL's Pos function but with optional Offset where search will start. 
Same as PosEx but without case sensitivity. 
Raises 2 to the given integer power (in range [0, 30]). 
Raises Base to any power. 
Returns True if R1 fits into R2. 
Returns True if R1 and R2 intersects. 
Returns rectangle (R.Left, R.Top, R.Right - R.Left, R.Bottom - R.Top). 
Scales one rectangle to fit into another. 
Returns a sub-string from S which is followed by Sep separator and deletes the sub-string from S including the separator. 
Same as StrToken but searches from the end of S string. 
Fills instance of TStrings with tokens from string S where tokens are separated by one of Seps characters. 
Swaps byte order of LongWord value. 
Swaps byte order of multiple LongWord values. 
Swaps byte order of multiple Word values. 
Swaps byte order of Word value. 
Swaps two LongInt values if necessary to ensure that Min <= Max
Swaps two Byte values 
Swaps two LongInt values 
Swaps two Single values 
Swaps two Word values 
Switches Boolean value. 
You are here: Symbol Reference > Files > ImagingUtility.pas