Functions to convert two bytes to a numeric value (long), (both little-endian and big-endian)
Used in some of the calculations of image dimensions.
Function L_R256(strTemp)
L_R256 = Clng(Asc(Left(strTemp, 1)) + ((Asc(Right(strTemp, 1)) * 256)))
End Function
Function R_L256(strTemp)
R_L256 = Clng(Asc(Right(strTemp, 1)) + ((Asc(Left(strTemp, 1)) * 256)))
End function
':::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
'::: :::
'::: Functions to convert two bytes to a numeric value (long) :::
'::: (both little-endian and big-endian) :::
'::: :::
':::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
L_R256 = Clng(Asc(Left(strTemp, 1)) + ((Asc(Right(strTemp, 1)) * 256)))
End Function
Function R_L256(strTemp)
R_L256 = Clng(Asc(Right(strTemp, 1)) + ((Asc(Left(strTemp, 1)) * 256)))
End function
':::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
'::: :::
'::: Functions to convert two bytes to a numeric value (long) :::
'::: (both little-endian and big-endian) :::
'::: :::
':::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
strTemp
Views 195
Downloads 64
CodeID
DB ID
ANmarAmdeen
610
Revisions
v1.0
Sunday
January
14
2024