File tree 3 files changed +32
-12
lines changed
3 files changed +32
-12
lines changed Original file line number Diff line number Diff line change @@ -16573,11 +16573,13 @@ procedure TMainForm.LoadRGBConvNames;
16573
16573
Delete (s, 1 , 1 );
16574
16574
Delete (s, Length (s), 1 );
16575
16575
RGBConvListBox.Items.Add (s);
16576
- if (s = LastSelected) then
16577
- RGBConvListBox.Selected[RGBConvListBox.Items.Count - 1 ] := TRUE;
16578
16576
16579
16577
Inc (j);
16580
16578
SetLength (RGBConvScripts, j + 1 );
16579
+
16580
+ if (s = LastSelected) then
16581
+ RGBConvListBox.ItemIndex := j;
16582
+
16581
16583
RGBConvScripts[j] := TStringList.Create;
16582
16584
end
16583
16585
else
Original file line number Diff line number Diff line change 1
1
object RGBConv: TRGBConv
2
2
Left = 192
3
3
Top = 107
4
- Width = 450
5
- Height = 429
4
+ Width = 545
5
+ Height = 497
6
6
Anchors = [akLeft, akBottom]
7
7
Caption = ' Color Conversion Scripts'
8
8
Color = clBtnFace
@@ -17,22 +17,23 @@ object RGBConv: TRGBConv
17
17
TextHeight = 13
18
18
object lblFilename: TLabel
19
19
Left = 8
20
- Top = 376
20
+ Top = 428
21
21
Width = 39
22
- Height = 13
22
+ Height = 18
23
+ Anchors = [akLeft, akBottom]
23
24
Caption = ' filename'
24
25
end
25
26
object Script: TMemo
26
27
Left = 8
27
28
Top = 8
28
- Width = 425
29
- Height = 351
29
+ Width = 513
30
+ Height = 405
30
31
Anchors = [akLeft, akTop, akRight, akBottom]
31
32
TabOrder = 0
32
33
end
33
34
object btnSave: TButton
34
- Left = 248
35
- Top = 368
35
+ Left = 335
36
+ Top = 424
36
37
Width = 89
37
38
Height = 25
38
39
Anchors = [akRight, akBottom]
@@ -42,8 +43,8 @@ object RGBConv: TRGBConv
42
43
OnClick = btnSaveClick
43
44
end
44
45
object btnCancel: TButton
45
- Left = 344
46
- Top = 368
46
+ Left = 431
47
+ Top = 424
47
48
Width = 89
48
49
Height = 25
49
50
Anchors = [akRight, akBottom]
Original file line number Diff line number Diff line change 8
8
G=255-G
9
9
B=255-B
10
10
11
+ [Swap Red and Green]
12
+ G=R
13
+ R=G
14
+
11
15
[Swap Blue and Green]
12
16
G=B
13
17
B=G
14
18
19
+ [Swap Red and Blue]
20
+ R=B
21
+ B=R
22
+
23
+ [More Saturation]
24
+ R=(12*R-((R+G+B)/3))/11
25
+ G=(12*G-((R+G+B)/3))/11
26
+ B=(12*B-((R+G+B)/3))/11
27
+
28
+ [Less Saturation]
29
+ R=(11*R+((R+G+B)/2))/12
30
+ G=(11*G+((R+G+B)/2))/12
31
+ B=(11*B+((R+G+B)/2))/12
You can’t perform that action at this time.
0 commit comments