Hello,
Could anybody pls help me in converting the coming vb code to VC++ code :
With my thanks in advance
Code:Const alpha = 1.5 Dim x As Integer Dim y As Integer Dim i As Integer Dim n As Integer Dim resultTable(0 To 255) As Byte ' build a result table for lookup ... For n = 0 To 22 For i = 0 To 255 resultTable(i) = clip(128 + alpha * (i - 128)) Next i Next n ' apply result table to the image ... For y = 1 To PicInfo.bmHeight For x = 1 To PicInfo.bmWidth img(1, x, y) = resultTable(img(1, x, y)) img(2, x, y) = resultTable(img(2, x, y)) img(3, x, y) = resultTable(img(3, x, y)) Next x Next y




Reply With Quote