I have next problem with new version of the library. Look into the code below (it's simplistic version of my code, but error occur):
Code: Select all
for x:=10 to gfl_bmp.Width-10 do
begin
for y:=10 to gfl_bmp.Height-10 do
begin
gflGetColorAt(gfl_bmp, x, y, colorSrc);
colorSrc.Blue := colorSrc.Blue div 2;
colorSrc.Green := colorSrc.Green div 2;
colorSrc.Red := colorSrc.Red div 2;
E := gflSetColorAt(gfl_bmp, x, y, colorSrc); // HERE IS THE POBLEM
end;
end;