# Problem when compare the color of two points!

#### nhanvu

##### New member
In this exercise, I have to draw a Chromaticity Diagram. First, I draw the layout (black), find the "highest" and "lowest" points.
I have to determine whether a point is in the layout or not.
But there's something wrong here, and I don't know why.

Can you help me?
Thanks alot!

VB.NET:
``````Imports System.Math
Public Class CIEForm
Dim Bao(470, 1) As Double 'Contains the data for drawing the layout
Dim i, j As Integer
Dim xx0, yy0, xx1, yy1 As Integer
Dim x, y, z As Double
Dim xIni, yIni As Double 'init positions of axials
Dim ratx, raty As Integer ' ratio
Dim MaxX, MaxY, Ymin, Ymax, Xmin, Xmax As Integer
Dim col As Color '= ColorTranslator.FromWin32(GetPixel(GetDC(0), 100, 100))
Dim Max As Double
Dim Str As String

Declare Function GetPixel Lib "gdi32.dll" (ByVal hdc As Int32, ByVal x As Int32, ByVal y As Int32) As Int32
Declare Function GetDC Lib "user32.dll" (ByVal hwnd As Int32) As Int32

Private Sub CIEForm_Paint(ByVal sender As System.Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles MyBase.Paint

Dim g As Graphics = e.Graphics
g.SmoothingMode = Drawing2D.SmoothingMode.HighQuality
Dim pen As Pen = New Pen(Color.Black, 1) 'the color of the layout
Dim penAxial As Pen = New Pen(Color.Magenta, 2) 'the color of axials

ratx = 200
raty = 200
xIni = 200
yIni = 300

Dim x0, y0, x1, y1 As Double
Dim point0, point1 As Point

Ymin = 1000
Ymax = 0

'draw the layout
For i = 0 To 469

x0 = Bao(i, 0)
y0 = Bao(i, 1)
xx0 = CInt(x0 * ratx + xIni)
yy0 = CInt(yIni - y0 * raty)
point0 = New Point(xx0, yy0)

x1 = Bao(i + 1, 0)
y1 = Bao(i + 1, 1)
xx1 = CInt(x1 * ratx + xIni)
yy1 = CInt(yIni - y1 * raty)
point1 = New Point(xx1, yy1)

If yy0 < Ymin Then
Ymin = yy0

End If

If yy0 > Ymax Then
Ymax = yy0

End If

g.DrawLine(pen, point0, point1)

Next

g.DrawLine(pen, CInt(Bao(0, 0) * ratx + xIni), CInt(yIni - Bao(0, 1) * raty), CInt(Bao(470, 0) * ratx + xIni), CInt(yIni - Bao(470, 1) * raty))

'draw 2 axials
g.DrawLine(penAxial, CInt(xIni - 2), CInt(yIni), CInt(xIni - 2), CInt(yIni - raty))
g.DrawLine(penAxial, CInt(xIni - 2), CInt(yIni), CInt(xIni + ratx), CInt(yIni))

Str = ColorTranslator.FromWin32(GetPixel(GetDC(0), CInt(Bao(0, 0) * ratx + xIni), CInt(yIni - Bao(0, 1) * raty))).ToString
'//////////////////////////////////////////////////////////////////////////////////////////////////
For j = Ymin To Ymax
Xmin = xIni
Xmax = xIni + ratx - 1

While ColorTranslator.FromWin32(GetPixel(GetDC(0), Xmin, j)).ToString <> Str And Xmin <= (xIni + ratx)
Xmin += 1

End While 'something wrong here

While ColorTranslator.FromWin32(GetPixel(GetDC(0), Xmax, j)).ToString <> Str And Xmax >= xIni
Xmax -= 1
End While 'something wrong here. Xmin always equals 200, Xmax always equal 399. No action happens :(
'///////////////////////////////////////////////////////////////////////////////////////////////

For i = Xmin To Xmax
'Bla bla bla
Next
Next

End Sub

'Forget the following lines :D
Private Sub CIEForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Bao(0, 0) = 0.17556
Bao(0, 1) = 0.005294
Bao(1, 0) = 0.175483
Bao(1, 1) = 0.005286
Bao(2, 0) = 0.1754
Bao(2, 1) = 0.005279
Bao(3, 0) = 0.175317
Bao(3, 1) = 0.005271
Bao(4, 0) = 0.175237
Bao(4, 1) = 0.005263
Bao(5, 0) = 0.175161
Bao(5, 1) = 0.005256
Bao(6, 0) = 0.175088
Bao(6, 1) = 0.005247
Bao(7, 0) = 0.175015
Bao(7, 1) = 0.005236
Bao(8, 0) = 0.174945
Bao(8, 1) = 0.005226
Bao(9, 0) = 0.17488
Bao(9, 1) = 0.005221
Bao(10, 0) = 0.174821
Bao(10, 1) = 0.005221
Bao(11, 0) = 0.17477
Bao(11, 1) = 0.005229
Bao(12, 0) = 0.174722
Bao(12, 1) = 0.005238
Bao(13, 0) = 0.174665
Bao(13, 1) = 0.005236
Bao(14, 0) = 0.174595
Bao(14, 1) = 0.005218
Bao(15, 0) = 0.17451
Bao(15, 1) = 0.005182
Bao(16, 0) = 0.174409
Bao(16, 1) = 0.005127
Bao(17, 0) = 0.174308
Bao(17, 1) = 0.005068
Bao(18, 0) = 0.174222
Bao(18, 1) = 0.005017
Bao(19, 0) = 0.174156
Bao(19, 1) = 0.004981
Bao(20, 0) = 0.174112
Bao(20, 1) = 0.004964
Bao(21, 0) = 0.174088
Bao(21, 1) = 0.004964
Bao(22, 0) = 0.174073
Bao(22, 1) = 0.004973
Bao(23, 0) = 0.174057
Bao(23, 1) = 0.004982
Bao(24, 0) = 0.174036
Bao(24, 1) = 0.004986
Bao(25, 0) = 0.174008
Bao(25, 1) = 0.004981
Bao(26, 0) = 0.173972
Bao(26, 1) = 0.004964
Bao(27, 0) = 0.173932
Bao(27, 1) = 0.004943
Bao(28, 0) = 0.173889
Bao(28, 1) = 0.004926
Bao(29, 0) = 0.173845
Bao(29, 1) = 0.004916
Bao(30, 0) = 0.173801
Bao(30, 1) = 0.004915
Bao(31, 0) = 0.173754
Bao(31, 1) = 0.004925
Bao(32, 0) = 0.173705
Bao(32, 1) = 0.004937
Bao(33, 0) = 0.173655
Bao(33, 1) = 0.004944
Bao(34, 0) = 0.173606
Bao(34, 1) = 0.00494
Bao(35, 0) = 0.17356
Bao(35, 1) = 0.004923
Bao(36, 0) = 0.173514
Bao(36, 1) = 0.004895
Bao(37, 0) = 0.173468
Bao(37, 1) = 0.004865
Bao(38, 0) = 0.173424
Bao(38, 1) = 0.004836
Bao(39, 0) = 0.17338
Bao(39, 1) = 0.004813
Bao(40, 0) = 0.173337
Bao(40, 1) = 0.004797
Bao(41, 0) = 0.173291
Bao(41, 1) = 0.004786
Bao(42, 0) = 0.173238
Bao(42, 1) = 0.004779
Bao(43, 0) = 0.173174
Bao(43, 1) = 0.004775
Bao(44, 0) = 0.173101
Bao(44, 1) = 0.004774
Bao(45, 0) = 0.173021
Bao(45, 1) = 0.004775
Bao(46, 0) = 0.172934
Bao(46, 1) = 0.004781
Bao(47, 0) = 0.172843
Bao(47, 1) = 0.004791
Bao(48, 0) = 0.172751
Bao(48, 1) = 0.004799
Bao(49, 0) = 0.172662
Bao(49, 1) = 0.004802
Bao(50, 0) = 0.172577
Bao(50, 1) = 0.004799
Bao(51, 0) = 0.172489
Bao(51, 1) = 0.004795
Bao(52, 0) = 0.172396
Bao(52, 1) = 0.004796
Bao(53, 0) = 0.172296
Bao(53, 1) = 0.004803
Bao(54, 0) = 0.172192
Bao(54, 1) = 0.004815
Bao(55, 0) = 0.172087
Bao(55, 1) = 0.004833
Bao(56, 0) = 0.171982
Bao(56, 1) = 0.004855
Bao(57, 0) = 0.171871
Bao(57, 1) = 0.004889
Bao(58, 0) = 0.171741
Bao(58, 1) = 0.004939
Bao(59, 0) = 0.171587
Bao(59, 1) = 0.00501
Bao(60, 0) = 0.171407
Bao(60, 1) = 0.005102
Bao(61, 0) = 0.171206
Bao(61, 1) = 0.005211
Bao(62, 0) = 0.170993
Bao(62, 1) = 0.005334
Bao(63, 0) = 0.170771
Bao(63, 1) = 0.00547
Bao(64, 0) = 0.170541
Bao(64, 1) = 0.005621
Bao(65, 0) = 0.170301
Bao(65, 1) = 0.005789
Bao(66, 0) = 0.17005
Bao(66, 1) = 0.005974
Bao(67, 0) = 0.169786
Bao(67, 1) = 0.006177
Bao(68, 0) = 0.169505
Bao(68, 1) = 0.006398
Bao(69, 0) = 0.169203
Bao(69, 1) = 0.006639
Bao(70, 0) = 0.168878
Bao(70, 1) = 0.0069
Bao(71, 0) = 0.168525
Bao(71, 1) = 0.007184
Bao(72, 0) = 0.168146
Bao(72, 1) = 0.007491
Bao(73, 0) = 0.167746
Bao(73, 1) = 0.007821
Bao(74, 0) = 0.167328
Bao(74, 1) = 0.008175
Bao(75, 0) = 0.166895
Bao(75, 1) = 0.008556
Bao(76, 0) = 0.166446
Bao(76, 1) = 0.008964
Bao(77, 0) = 0.165977
Bao(77, 1) = 0.009402
Bao(78, 0) = 0.165483
Bao(78, 1) = 0.009865
Bao(79, 0) = 0.164963
Bao(79, 1) = 0.010351
Bao(80, 0) = 0.164412
Bao(80, 1) = 0.010858
Bao(81, 0) = 0.163828
Bao(81, 1) = 0.011385
Bao(82, 0) = 0.16321
Bao(82, 1) = 0.011937
Bao(83, 0) = 0.162552
Bao(83, 1) = 0.01252
Bao(84, 0) = 0.161851
Bao(84, 1) = 0.013137
Bao(85, 0) = 0.161105
Bao(85, 1) = 0.013793
Bao(86, 0) = 0.16031
Bao(86, 1) = 0.014491
Bao(87, 0) = 0.159466
Bao(87, 1) = 0.015232
Bao(88, 0) = 0.158573
Bao(88, 1) = 0.016015
Bao(89, 0) = 0.157631
Bao(89, 1) = 0.01684
Bao(90, 0) = 0.156641
Bao(90, 1) = 0.017705
Bao(91, 0) = 0.155605
Bao(91, 1) = 0.018609
Bao(92, 0) = 0.154525
Bao(92, 1) = 0.019556
Bao(93, 0) = 0.153397
Bao(93, 1) = 0.020554
Bao(94, 0) = 0.152219
Bao(94, 1) = 0.021612
Bao(95, 0) = 0.150985
Bao(95, 1) = 0.02274
Bao(96, 0) = 0.149691
Bao(96, 1) = 0.02395
Bao(97, 0) = 0.148337
Bao(97, 1) = 0.025247
Bao(98, 0) = 0.146928
Bao(98, 1) = 0.026635
Bao(99, 0) = 0.145468
Bao(99, 1) = 0.028118
Bao(100, 0) = 0.14396
Bao(100, 1) = 0.029703
Bao(101, 0) = 0.142405
Bao(101, 1) = 0.031394
Bao(102, 0) = 0.140796
Bao(102, 1) = 0.033213
Bao(103, 0) = 0.139121
Bao(103, 1) = 0.035201
Bao(104, 0) = 0.137364
Bao(104, 1) = 0.037403
Bao(105, 0) = 0.135503
Bao(105, 1) = 0.039879
Bao(106, 0) = 0.133509
Bao(106, 1) = 0.042692
Bao(107, 0) = 0.131371
Bao(107, 1) = 0.045876
Bao(108, 0) = 0.129086
Bao(108, 1) = 0.04945
Bao(109, 0) = 0.126662
Bao(109, 1) = 0.053426
Bao(110, 0) = 0.124118
Bao(110, 1) = 0.057803
Bao(111, 0) = 0.121469
Bao(111, 1) = 0.062588
Bao(112, 0) = 0.118701
Bao(112, 1) = 0.06783
Bao(113, 0) = 0.115807
Bao(113, 1) = 0.073581
Bao(114, 0) = 0.112776
Bao(114, 1) = 0.079896
Bao(115, 0) = 0.109594
Bao(115, 1) = 0.086843
Bao(116, 0) = 0.106261
Bao(116, 1) = 0.094486
Bao(117, 0) = 0.102776
Bao(117, 1) = 0.102864
Bao(118, 0) = 0.099128
Bao(118, 1) = 0.112007
Bao(119, 0) = 0.095304
Bao(119, 1) = 0.121945
Bao(120, 0) = 0.091294
Bao(120, 1) = 0.132702
Bao(121, 0) = 0.087082
Bao(121, 1) = 0.144317
Bao(122, 0) = 0.08268
Bao(122, 1) = 0.156866
Bao(123, 0) = 0.078116
Bao(123, 1) = 0.17042
Bao(124, 0) = 0.073437
Bao(124, 1) = 0.185032
Bao(125, 0) = 0.068706
Bao(125, 1) = 0.200723
Bao(126, 0) = 0.063993
Bao(126, 1) = 0.217468
Bao(127, 0) = 0.059316
Bao(127, 1) = 0.235254
Bao(128, 0) = 0.054667
Bao(128, 1) = 0.254096
Bao(129, 0) = 0.050031
Bao(129, 1) = 0.274002
Bao(130, 0) = 0.045391
Bao(130, 1) = 0.294976
Bao(131, 0) = 0.040757
Bao(131, 1) = 0.316981
Bao(132, 0) = 0.036195
Bao(132, 1) = 0.3399
Bao(133, 0) = 0.031756
Bao(133, 1) = 0.363598
Bao(134, 0) = 0.027494
Bao(134, 1) = 0.387921
Bao(135, 0) = 0.02346
Bao(135, 1) = 0.412703
Bao(136, 0) = 0.019705
Bao(136, 1) = 0.437756
Bao(137, 0) = 0.016268
Bao(137, 1) = 0.462955
Bao(138, 0) = 0.013183
Bao(138, 1) = 0.488207
Bao(139, 0) = 0.010476
Bao(139, 1) = 0.513404
Bao(140, 0) = 0.008168
Bao(140, 1) = 0.538423
Bao(141, 0) = 0.006285
Bao(141, 1) = 0.563068
Bao(142, 0) = 0.004875
Bao(142, 1) = 0.587116
Bao(143, 0) = 0.003982
Bao(143, 1) = 0.610447
Bao(144, 0) = 0.003636
Bao(144, 1) = 0.633011
Bao(145, 0) = 0.003859
Bao(145, 1) = 0.654823
Bao(146, 0) = 0.004646
Bao(146, 1) = 0.675898
Bao(147, 0) = 0.006011
Bao(147, 1) = 0.69612
Bao(148, 0) = 0.007988
Bao(148, 1) = 0.715342
Bao(149, 0) = 0.010603
Bao(149, 1) = 0.733413
Bao(150, 0) = 0.01387
Bao(150, 1) = 0.750186
Bao(151, 0) = 0.017766
Bao(151, 1) = 0.765612
Bao(152, 0) = 0.022244
Bao(152, 1) = 0.77963
Bao(153, 0) = 0.027273
Bao(153, 1) = 0.792104
Bao(154, 0) = 0.03282
Bao(154, 1) = 0.802926
Bao(155, 0) = 0.038852
Bao(155, 1) = 0.812016
Bao(156, 0) = 0.045328
Bao(156, 1) = 0.819391
Bao(157, 0) = 0.052177
Bao(157, 1) = 0.825164
Bao(158, 0) = 0.059326
Bao(158, 1) = 0.829426
Bao(159, 0) = 0.066716
Bao(159, 1) = 0.832274
Bao(160, 0) = 0.074302
Bao(160, 1) = 0.833803
Bao(161, 0) = 0.082053
Bao(161, 1) = 0.83409
Bao(162, 0) = 0.089942
Bao(162, 1) = 0.833289
Bao(163, 0) = 0.09794
Bao(163, 1) = 0.831593
Bao(164, 0) = 0.106021
Bao(164, 1) = 0.829178
Bao(165, 0) = 0.114161
Bao(165, 1) = 0.826207
Bao(166, 0) = 0.122347
Bao(166, 1) = 0.82277
Bao(167, 0) = 0.130546
Bao(167, 1) = 0.818928
Bao(168, 0) = 0.138702
Bao(168, 1) = 0.814774
Bao(169, 0) = 0.146773
Bao(169, 1) = 0.810395
Bao(170, 0) = 0.154722
Bao(170, 1) = 0.805864
Bao(171, 0) = 0.162535
Bao(171, 1) = 0.801238
Bao(172, 0) = 0.170237
Bao(172, 1) = 0.796519
Bao(173, 0) = 0.17785
Bao(173, 1) = 0.791687
Bao(174, 0) = 0.185391
Bao(174, 1) = 0.786728
Bao(175, 0) = 0.192876
Bao(175, 1) = 0.781629
Bao(176, 0) = 0.200309
Bao(176, 1) = 0.776399
Bao(177, 0) = 0.20769
Bao(177, 1) = 0.771055
Bao(178, 0) = 0.21503
Bao(178, 1) = 0.765595
Bao(179, 0) = 0.222337
Bao(179, 1) = 0.76002
Bao(180, 0) = 0.22962
Bao(180, 1) = 0.754329
Bao(181, 0) = 0.236885
Bao(181, 1) = 0.748524
Bao(182, 0) = 0.244133
Bao(182, 1) = 0.742614
Bao(183, 0) = 0.251363
Bao(183, 1) = 0.736606
Bao(184, 0) = 0.258578
Bao(184, 1) = 0.730507
Bao(185, 0) = 0.265775
Bao(185, 1) = 0.724324
Bao(186, 0) = 0.272958
Bao(186, 1) = 0.718062
Bao(187, 0) = 0.280129
Bao(187, 1) = 0.711725
Bao(188, 0) = 0.287292
Bao(188, 1) = 0.705316
Bao(189, 0) = 0.29445
Bao(189, 1) = 0.698842
Bao(190, 0) = 0.301604
Bao(190, 1) = 0.692308
Bao(191, 0) = 0.30876
Bao(191, 1) = 0.685712
Bao(192, 0) = 0.315914
Bao(192, 1) = 0.679063
Bao(193, 0) = 0.323066
Bao(193, 1) = 0.672367
Bao(194, 0) = 0.330216
Bao(194, 1) = 0.665628
Bao(195, 0) = 0.337363
Bao(195, 1) = 0.658848
Bao(196, 0) = 0.344513
Bao(196, 1) = 0.652028
Bao(197, 0) = 0.351664
Bao(197, 1) = 0.645172
Bao(198, 0) = 0.358814
Bao(198, 1) = 0.638287
Bao(199, 0) = 0.365959
Bao(199, 1) = 0.631379
Bao(200, 0) = 0.373102
Bao(200, 1) = 0.624451
Bao(201, 0) = 0.380244
Bao(201, 1) = 0.617502
Bao(202, 0) = 0.387379
Bao(202, 1) = 0.610542
Bao(203, 0) = 0.394507
Bao(203, 1) = 0.603571
Bao(204, 0) = 0.401626
Bao(204, 1) = 0.596592
Bao(205, 0) = 0.408736
Bao(205, 1) = 0.589607
Bao(206, 0) = 0.415836
Bao(206, 1) = 0.582618
Bao(207, 0) = 0.422921
Bao(207, 1) = 0.575631
Bao(208, 0) = 0.429989
Bao(208, 1) = 0.568649
Bao(209, 0) = 0.437036
Bao(209, 1) = 0.561676
Bao(210, 0) = 0.444062
Bao(210, 1) = 0.554714
Bao(211, 0) = 0.451065
Bao(211, 1) = 0.547766
Bao(212, 0) = 0.458041
Bao(212, 1) = 0.540837
Bao(213, 0) = 0.464986
Bao(213, 1) = 0.53393
Bao(214, 0) = 0.471899
Bao(214, 1) = 0.527051
Bao(215, 0) = 0.478775
Bao(215, 1) = 0.520202
Bao(216, 0) = 0.485612
Bao(216, 1) = 0.513389
Bao(217, 0) = 0.492405
Bao(217, 1) = 0.506615
Bao(218, 0) = 0.499151
Bao(218, 1) = 0.499887
Bao(219, 0) = 0.505845
Bao(219, 1) = 0.493211
Bao(220, 0) = 0.512486
Bao(220, 1) = 0.486591
Bao(221, 0) = 0.519073
Bao(221, 1) = 0.480029
Bao(222, 0) = 0.5256
Bao(222, 1) = 0.473527
Bao(223, 0) = 0.532066
Bao(223, 1) = 0.467091
Bao(224, 0) = 0.538463
Bao(224, 1) = 0.460725
Bao(225, 0) = 0.544787
Bao(225, 1) = 0.454434
Bao(226, 0) = 0.551031
Bao(226, 1) = 0.448225
Bao(227, 0) = 0.557193
Bao(227, 1) = 0.442099
Bao(228, 0) = 0.563269
Bao(228, 1) = 0.436058
Bao(229, 0) = 0.569257
Bao(229, 1) = 0.430102
Bao(230, 0) = 0.575151
Bao(230, 1) = 0.424232
Bao(231, 0) = 0.580953
Bao(231, 1) = 0.418447
Bao(232, 0) = 0.58665
Bao(232, 1) = 0.412758
Bao(233, 0) = 0.592225
Bao(233, 1) = 0.40719
Bao(234, 0) = 0.597658
Bao(234, 1) = 0.401762
Bao(235, 0) = 0.602933
Bao(235, 1) = 0.396497
Bao(236, 0) = 0.608035
Bao(236, 1) = 0.391409
Bao(237, 0) = 0.612977
Bao(237, 1) = 0.386486
Bao(238, 0) = 0.617779
Bao(238, 1) = 0.381706
Bao(239, 0) = 0.622459
Bao(239, 1) = 0.377047
Bao(240, 0) = 0.627037
Bao(240, 1) = 0.372491
Bao(241, 0) = 0.631521
Bao(241, 1) = 0.368026
Bao(242, 0) = 0.6359
Bao(242, 1) = 0.363665
Bao(243, 0) = 0.640156
Bao(243, 1) = 0.359428
Bao(244, 0) = 0.644273
Bao(244, 1) = 0.355331
Bao(245, 0) = 0.648233
Bao(245, 1) = 0.351395
Bao(246, 0) = 0.652028
Bao(246, 1) = 0.347628
Bao(247, 0) = 0.655669
Bao(247, 1) = 0.344018
Bao(248, 0) = 0.659166
Bao(248, 1) = 0.340553
Bao(249, 0) = 0.662528
Bao(249, 1) = 0.337221
Bao(250, 0) = 0.665764
Bao(250, 1) = 0.334011
Bao(251, 0) = 0.668874
Bao(251, 1) = 0.330919
Bao(252, 0) = 0.671859
Bao(252, 1) = 0.327947
Bao(253, 0) = 0.67472
Bao(253, 1) = 0.325095
Bao(254, 0) = 0.677459
Bao(254, 1) = 0.322362
Bao(255, 0) = 0.680079
Bao(255, 1) = 0.319747
Bao(256, 0) = 0.682582
Bao(256, 1) = 0.317249
Bao(257, 0) = 0.684971
Bao(257, 1) = 0.314863
Bao(258, 0) = 0.68725
Bao(258, 1) = 0.312586
Bao(259, 0) = 0.689426
Bao(259, 1) = 0.310414
Bao(260, 0) = 0.691504
Bao(260, 1) = 0.308342
Bao(261, 0) = 0.69349
Bao(261, 1) = 0.306366
Bao(262, 0) = 0.695389
Bao(262, 1) = 0.304479
Bao(263, 0) = 0.697206
Bao(263, 1) = 0.302675
Bao(264, 0) = 0.698944
Bao(264, 1) = 0.30095
Bao(265, 0) = 0.700606
Bao(265, 1) = 0.299301
Bao(266, 0) = 0.702193
Bao(266, 1) = 0.297725
Bao(267, 0) = 0.703709
Bao(267, 1) = 0.296217
Bao(268, 0) = 0.705163
Bao(268, 1) = 0.29477
Bao(269, 0) = 0.706563
Bao(269, 1) = 0.293376
Bao(270, 0) = 0.707918
Bao(270, 1) = 0.292027
Bao(271, 0) = 0.709231
Bao(271, 1) = 0.290719
Bao(272, 0) = 0.7105
Bao(272, 1) = 0.289453
Bao(273, 0) = 0.711724
Bao(273, 1) = 0.288232
Bao(274, 0) = 0.712901
Bao(274, 1) = 0.287057
Bao(275, 0) = 0.714032
Bao(275, 1) = 0.285929
Bao(276, 0) = 0.715117
Bao(276, 1) = 0.284845
Bao(277, 0) = 0.716159
Bao(277, 1) = 0.283804
Bao(278, 0) = 0.717159
Bao(278, 1) = 0.282806
Bao(279, 0) = 0.718116
Bao(279, 1) = 0.28185
Bao(280, 0) = 0.719033
Bao(280, 1) = 0.280935
Bao(281, 0) = 0.719912
Bao(281, 1) = 0.280058
Bao(282, 0) = 0.720753
Bao(282, 1) = 0.279219
Bao(283, 0) = 0.721555
Bao(283, 1) = 0.27842
Bao(284, 0) = 0.722315
Bao(284, 1) = 0.277662
Bao(285, 0) = 0.723032
Bao(285, 1) = 0.276948
Bao(286, 0) = 0.723702
Bao(286, 1) = 0.276282
Bao(287, 0) = 0.724328
Bao(287, 1) = 0.27566
Bao(288, 0) = 0.724914
Bao(288, 1) = 0.275078
Bao(289, 0) = 0.725467
Bao(289, 1) = 0.27453
Bao(290, 0) = 0.725992
Bao(290, 1) = 0.274008
Bao(291, 0) = 0.726495
Bao(291, 1) = 0.273505
Bao(292, 0) = 0.726975
Bao(292, 1) = 0.273025
Bao(293, 0) = 0.727432
Bao(293, 1) = 0.272568
Bao(294, 0) = 0.727864
Bao(294, 1) = 0.272136
Bao(295, 0) = 0.728272
Bao(295, 1) = 0.271728
Bao(296, 0) = 0.728656
Bao(296, 1) = 0.271344
Bao(297, 0) = 0.72902
Bao(297, 1) = 0.27098
Bao(298, 0) = 0.729361
Bao(298, 1) = 0.270639
Bao(299, 0) = 0.729678
Bao(299, 1) = 0.270322
Bao(300, 0) = 0.729969
Bao(300, 1) = 0.270031
Bao(301, 0) = 0.730234
Bao(301, 1) = 0.269766
Bao(302, 0) = 0.730474
Bao(302, 1) = 0.269526
Bao(303, 0) = 0.730693
Bao(303, 1) = 0.269307
Bao(304, 0) = 0.730896
Bao(304, 1) = 0.269104
Bao(305, 0) = 0.731089
Bao(305, 1) = 0.268911
Bao(306, 0) = 0.73128
Bao(306, 1) = 0.26872
Bao(307, 0) = 0.731467
Bao(307, 1) = 0.268533
Bao(308, 0) = 0.73165
Bao(308, 1) = 0.26835
Bao(309, 0) = 0.731826
Bao(309, 1) = 0.268174
Bao(310, 0) = 0.731993
Bao(310, 1) = 0.268007
Bao(311, 0) = 0.73215
Bao(311, 1) = 0.26785
Bao(312, 0) = 0.7323
Bao(312, 1) = 0.2677
Bao(313, 0) = 0.732443
Bao(313, 1) = 0.267557
Bao(314, 0) = 0.732581
Bao(314, 1) = 0.267419
Bao(315, 0) = 0.732719
Bao(315, 1) = 0.267281
Bao(316, 0) = 0.732859
Bao(316, 1) = 0.267141
Bao(317, 0) = 0.733
Bao(317, 1) = 0.267
Bao(318, 0) = 0.733142
Bao(318, 1) = 0.266858
Bao(319, 0) = 0.733281
Bao(319, 1) = 0.266719
Bao(320, 0) = 0.733417
Bao(320, 1) = 0.266583
Bao(321, 0) = 0.733551
Bao(321, 1) = 0.266449
Bao(322, 0) = 0.733683
Bao(322, 1) = 0.266317
Bao(323, 0) = 0.733813
Bao(323, 1) = 0.266187
Bao(324, 0) = 0.733936
Bao(324, 1) = 0.266064
Bao(325, 0) = 0.734047
Bao(325, 1) = 0.265953
Bao(326, 0) = 0.734143
Bao(326, 1) = 0.265857
Bao(327, 0) = 0.734221
Bao(327, 1) = 0.265779
Bao(328, 0) = 0.734286
Bao(328, 1) = 0.265714
Bao(329, 0) = 0.734341
Bao(329, 1) = 0.265659
Bao(330, 0) = 0.73439
Bao(330, 1) = 0.26561
Bao(331, 0) = 0.734438
Bao(331, 1) = 0.265562
Bao(332, 0) = 0.734482
Bao(332, 1) = 0.265518
Bao(333, 0) = 0.734523
Bao(333, 1) = 0.265477
Bao(334, 0) = 0.73456
Bao(334, 1) = 0.26544
Bao(335, 0) = 0.734592
Bao(335, 1) = 0.265408
Bao(336, 0) = 0.734621
Bao(336, 1) = 0.265379
Bao(337, 0) = 0.734649
Bao(337, 1) = 0.265351
Bao(338, 0) = 0.734673
Bao(338, 1) = 0.265327
Bao(339, 0) = 0.73469
Bao(339, 1) = 0.26531
Bao(340, 0) = 0.73469
Bao(340, 1) = 0.26531
Bao(341, 0) = 0.73469
Bao(341, 1) = 0.26531
Bao(342, 0) = 0.73469
Bao(342, 1) = 0.26531
Bao(343, 0) = 0.73469
Bao(343, 1) = 0.26531
Bao(344, 0) = 0.73469
Bao(344, 1) = 0.26531
Bao(345, 0) = 0.73469
Bao(345, 1) = 0.26531
Bao(346, 0) = 0.73469
Bao(346, 1) = 0.26531
Bao(347, 0) = 0.73469
Bao(347, 1) = 0.26531
Bao(348, 0) = 0.73469
Bao(348, 1) = 0.26531
Bao(349, 0) = 0.73469
Bao(349, 1) = 0.26531
Bao(350, 0) = 0.73469
Bao(350, 1) = 0.26531
Bao(351, 0) = 0.73469
Bao(351, 1) = 0.26531
Bao(352, 0) = 0.73469
Bao(352, 1) = 0.26531
Bao(353, 0) = 0.73469
Bao(353, 1) = 0.26531
Bao(354, 0) = 0.73469
Bao(354, 1) = 0.26531
Bao(355, 0) = 0.73469
Bao(355, 1) = 0.26531
Bao(356, 0) = 0.73469
Bao(356, 1) = 0.26531
Bao(357, 0) = 0.73469
Bao(357, 1) = 0.26531
Bao(358, 0) = 0.73469
Bao(358, 1) = 0.26531
Bao(359, 0) = 0.73469
Bao(359, 1) = 0.26531
Bao(360, 0) = 0.73469
Bao(360, 1) = 0.26531
Bao(361, 0) = 0.73469
Bao(361, 1) = 0.26531
Bao(362, 0) = 0.73469
Bao(362, 1) = 0.26531
Bao(363, 0) = 0.73469
Bao(363, 1) = 0.26531
Bao(364, 0) = 0.73469
Bao(364, 1) = 0.26531
Bao(365, 0) = 0.73469
Bao(365, 1) = 0.26531
Bao(366, 0) = 0.73469
Bao(366, 1) = 0.26531
Bao(367, 0) = 0.73469
Bao(367, 1) = 0.26531
Bao(368, 0) = 0.73469
Bao(368, 1) = 0.26531
Bao(369, 0) = 0.73469
Bao(369, 1) = 0.26531
Bao(370, 0) = 0.73469
Bao(370, 1) = 0.26531
Bao(371, 0) = 0.73469
Bao(371, 1) = 0.26531
Bao(372, 0) = 0.73469
Bao(372, 1) = 0.26531
Bao(373, 0) = 0.73469
Bao(373, 1) = 0.26531
Bao(374, 0) = 0.73469
Bao(374, 1) = 0.26531
Bao(375, 0) = 0.73469
Bao(375, 1) = 0.26531
Bao(376, 0) = 0.73469
Bao(376, 1) = 0.26531
Bao(377, 0) = 0.73469
Bao(377, 1) = 0.26531
Bao(378, 0) = 0.73469
Bao(378, 1) = 0.26531
Bao(379, 0) = 0.73469
Bao(379, 1) = 0.26531
Bao(380, 0) = 0.73469
Bao(380, 1) = 0.26531
Bao(381, 0) = 0.73469
Bao(381, 1) = 0.26531
Bao(382, 0) = 0.73469
Bao(382, 1) = 0.26531
Bao(383, 0) = 0.73469
Bao(383, 1) = 0.26531
Bao(384, 0) = 0.73469
Bao(384, 1) = 0.26531
Bao(385, 0) = 0.73469
Bao(385, 1) = 0.26531
Bao(386, 0) = 0.73469
Bao(386, 1) = 0.26531
Bao(387, 0) = 0.73469
Bao(387, 1) = 0.26531
Bao(388, 0) = 0.73469
Bao(388, 1) = 0.26531
Bao(389, 0) = 0.73469
Bao(389, 1) = 0.26531
Bao(390, 0) = 0.73469
Bao(390, 1) = 0.26531
Bao(391, 0) = 0.73469
Bao(391, 1) = 0.26531
Bao(392, 0) = 0.73469
Bao(392, 1) = 0.26531
Bao(393, 0) = 0.73469
Bao(393, 1) = 0.26531
Bao(394, 0) = 0.73469
Bao(394, 1) = 0.26531
Bao(395, 0) = 0.73469
Bao(395, 1) = 0.26531
Bao(396, 0) = 0.73469
Bao(396, 1) = 0.26531
Bao(397, 0) = 0.73469
Bao(397, 1) = 0.26531
Bao(398, 0) = 0.73469
Bao(398, 1) = 0.26531
Bao(399, 0) = 0.73469
Bao(399, 1) = 0.26531
Bao(400, 0) = 0.73469
Bao(400, 1) = 0.26531
Bao(401, 0) = 0.73469
Bao(401, 1) = 0.26531
Bao(402, 0) = 0.73469
Bao(402, 1) = 0.26531
Bao(403, 0) = 0.73469
Bao(403, 1) = 0.26531
Bao(404, 0) = 0.73469
Bao(404, 1) = 0.26531
Bao(405, 0) = 0.73469
Bao(405, 1) = 0.26531
Bao(406, 0) = 0.73469
Bao(406, 1) = 0.26531
Bao(407, 0) = 0.73469
Bao(407, 1) = 0.26531
Bao(408, 0) = 0.73469
Bao(408, 1) = 0.26531
Bao(409, 0) = 0.73469
Bao(409, 1) = 0.26531
Bao(410, 0) = 0.73469
Bao(410, 1) = 0.26531
Bao(411, 0) = 0.73469
Bao(411, 1) = 0.26531
Bao(412, 0) = 0.73469
Bao(412, 1) = 0.26531
Bao(413, 0) = 0.73469
Bao(413, 1) = 0.26531
Bao(414, 0) = 0.73469
Bao(414, 1) = 0.26531
Bao(415, 0) = 0.73469
Bao(415, 1) = 0.26531
Bao(416, 0) = 0.73469
Bao(416, 1) = 0.26531
Bao(417, 0) = 0.73469
Bao(417, 1) = 0.26531
Bao(418, 0) = 0.73469
Bao(418, 1) = 0.26531
Bao(419, 0) = 0.73469
Bao(419, 1) = 0.26531
Bao(420, 0) = 0.73469
Bao(420, 1) = 0.26531
Bao(421, 0) = 0.73469
Bao(421, 1) = 0.26531
Bao(422, 0) = 0.73469
Bao(422, 1) = 0.26531
Bao(423, 0) = 0.73469
Bao(423, 1) = 0.26531
Bao(424, 0) = 0.73469
Bao(424, 1) = 0.26531
Bao(425, 0) = 0.73469
Bao(425, 1) = 0.26531
Bao(426, 0) = 0.73469
Bao(426, 1) = 0.26531
Bao(427, 0) = 0.73469
Bao(427, 1) = 0.26531
Bao(428, 0) = 0.73469
Bao(428, 1) = 0.26531
Bao(429, 0) = 0.73469
Bao(429, 1) = 0.26531
Bao(430, 0) = 0.73469
Bao(430, 1) = 0.26531
Bao(431, 0) = 0.73469
Bao(431, 1) = 0.26531
Bao(432, 0) = 0.73469
Bao(432, 1) = 0.26531
Bao(433, 0) = 0.73469
Bao(433, 1) = 0.26531
Bao(434, 0) = 0.73469
Bao(434, 1) = 0.26531
Bao(435, 0) = 0.73469
Bao(435, 1) = 0.26531
Bao(436, 0) = 0.73469
Bao(436, 1) = 0.26531
Bao(437, 0) = 0.73469
Bao(437, 1) = 0.26531
Bao(438, 0) = 0.73469
Bao(438, 1) = 0.26531
Bao(439, 0) = 0.73469
Bao(439, 1) = 0.26531
Bao(440, 0) = 0.73469
Bao(440, 1) = 0.26531
Bao(441, 0) = 0.73469
Bao(441, 1) = 0.26531
Bao(442, 0) = 0.73469
Bao(442, 1) = 0.26531
Bao(443, 0) = 0.73469
Bao(443, 1) = 0.26531
Bao(444, 0) = 0.73469
Bao(444, 1) = 0.26531
Bao(445, 0) = 0.73469
Bao(445, 1) = 0.26531
Bao(446, 0) = 0.73469
Bao(446, 1) = 0.26531
Bao(447, 0) = 0.73469
Bao(447, 1) = 0.26531
Bao(448, 0) = 0.73469
Bao(448, 1) = 0.26531
Bao(449, 0) = 0.73469
Bao(449, 1) = 0.26531
Bao(450, 0) = 0.73469
Bao(450, 1) = 0.26531
Bao(451, 0) = 0.73469
Bao(451, 1) = 0.26531
Bao(452, 0) = 0.73469
Bao(452, 1) = 0.26531
Bao(453, 0) = 0.73469
Bao(453, 1) = 0.26531
Bao(454, 0) = 0.73469
Bao(454, 1) = 0.26531
Bao(455, 0) = 0.73469
Bao(455, 1) = 0.26531
Bao(456, 0) = 0.73469
Bao(456, 1) = 0.26531
Bao(457, 0) = 0.73469
Bao(457, 1) = 0.26531
Bao(458, 0) = 0.73469
Bao(458, 1) = 0.26531
Bao(459, 0) = 0.73469
Bao(459, 1) = 0.26531
Bao(460, 0) = 0.73469
Bao(460, 1) = 0.26531
Bao(461, 0) = 0.73469
Bao(461, 1) = 0.26531
Bao(462, 0) = 0.73469
Bao(462, 1) = 0.26531
Bao(463, 0) = 0.73469
Bao(463, 1) = 0.26531
Bao(464, 0) = 0.73469
Bao(464, 1) = 0.26531
Bao(465, 0) = 0.73469
Bao(465, 1) = 0.26531
Bao(466, 0) = 0.73469
Bao(466, 1) = 0.26531
Bao(467, 0) = 0.73469
Bao(467, 1) = 0.26531
Bao(468, 0) = 0.73469
Bao(468, 1) = 0.26531
Bao(469, 0) = 0.73469
Bao(469, 1) = 0.26531
Bao(470, 0) = 0.73469
Bao(470, 1) = 0.26531

End Sub
End Class``````

Last edited by a moderator: