Skip to content

Commit

Permalink
version 4.1.0 (VCL+FMX)
Browse files Browse the repository at this point in the history
- Aligned Image32 Library released on 03/09/2023
- Fixed #254 issue
- Fixed demo (removed "obsolete" SVGColor uses)
  • Loading branch information
carloBarazzetta committed Sep 3, 2023
1 parent 99ade4c commit 07ed7dd
Show file tree
Hide file tree
Showing 16 changed files with 385 additions and 405 deletions.
1 change: 0 additions & 1 deletion Demo/Source/UMain.pas
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ implementation
{$IFDEF DXE3+}
, UITypes
{$ENDIF}
, SVGColor
, SVGIconUtils
, SVGIconImageListEditorUnit;

Expand Down
1 change: 0 additions & 1 deletion Demo/Source/UMainNew.pas
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ implementation
{$IFDEF DXE3+}
, UITypes
{$ENDIF}
, SVGColor
, SVGIconUtils
, SVGTextPropertyEditorUnit
, SVGIconImageListEditorUnit;
Expand Down
8 changes: 4 additions & 4 deletions Image32/source/Img32.CQ.pas
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
(*******************************************************************************
* Author : Angus Johnson *
* Version : 4.4 *
* Date : 14 May 2023 *
* Date : 4 July 2023 *
* Website : http://www.angusj.com *
* Copyright : Angus Johnson 2019-2021 *
* Purpose : Color reduction for TImage32 *
Expand Down Expand Up @@ -399,20 +399,20 @@ procedure MedianCutInternal(var cfArr: TArrayOfColFreq;
if (gx >= rx) and (gx >= bx) then
begin
PaletteSort(cfArr, start, finish, PalGreenSorter);
midC := (loG + hiG) * 6 div 11;
midC := (loG + hiG) div 2;
while (mid <> finish) and
(TARGB(cfArr[mid].color).G > midC) do inc(mid);
end
else if (bx >= rx) then
begin
PaletteSort(cfArr, start, finish, PalBlueSorter);
midC := (loB + hiB) * 6 div 11;
midC := (loB + hiB) div 2;
while (mid <> finish) and
(TARGB(cfArr[mid].color).B > midC) do inc(mid);
end else
begin
PaletteSort(cfArr, start, finish, PalRedSorter);
midC := (loR + hiR) * 6 div 11;
midC := (loR + hiR) div 2;
while (mid <> finish) and
(TARGB(cfArr[mid].color).R > midC) do inc(mid);
end;
Expand Down
Loading

0 comments on commit 07ed7dd

Please sign in to comment.