PointF[]
Rpts = new PointF[4];
PointF[]
Gpts = new PointF[4];
PointF[]
Bpts = new PointF[4];
float
offsetR = 35.73455;
float
offsetG = 87;
float
offsetB = 139;
//initialize arrays
int
i = 0;
for
(i = 0; i < Rpts.Length; i++)
Rpts[i] =
new PointF();
for
(i = 0; i < Gpts.Length; i++)
Gpts[i] =
new PointF();
for
(i = 0; i < Bpts.Length; i++)
Bpts[i] =
new PointF();
// Red
Rpts[0].X = 0.0f;
Rpts[0].Y = 0 +
offsetR;
Rpts[1].X = 0.24f;
Rpts[1].Y = 2 +
offsetR;
Rpts[2].X = 0.733f;
Rpts[2].Y = 68 +
offsetR;
Rpts[3].X = 1.0f;
Rpts[3].Y = 148 +
offsetR;
//
Green
Gpts[0].X = 0.0f;
Gpts[0].Y = 0 +
offsetG;
Gpts[1].X = 0.266f;
Gpts[1].Y = 1 +
offsetG;
Gpts[2].X = 0.752f;
Gpts[2].Y = 90 +
offsetG;
Gpts[3].X = 1.0f;
Gpts[3].Y = 153 +
offsetG;
//
Blue
Bpts[0].X = 0.0f;
Bpts[0].Y = 0 +
offsetB;
Bpts[1].X = 0.217f;
Bpts[1].Y = 12 +
offsetB;
Bpts[2].X = 0.919f;
Bpts[2].Y = 103 +
offsetB;
Bpts[3].X = 1.0f;
Bpts[3].Y = 133 + offsetB;

float
len = 1704; // enter required size here
PointF[]
Rpts = new PointF[4];
PointF[]
Gpts = new PointF[4];
PointF[]
Bpts = new PointF[4];
float
offsetR = 35.73455;
float
offsetG = 87;
float
offsetB = 139;
//initialize arrays
int
i = 0;
for
(i = 0; i < Rpts.Length; i++)
Rpts[i] =
new PointF();
for
(i = 0; i < Gpts.Length; i++)
Gpts[i] =
new PointF();
for
(i = 0; i < Bpts.Length; i++)
Bpts[i] =
new PointF();
// Red
Rpts[0].X = len *
0.0f;
Rpts[0].Y = 0 +
offsetR;
Rpts[1].X = len *
0.24f;
Rpts[1].Y = 2 +
offsetR;
Rpts[2].X = len *
0.733f;
Rpts[2].Y = 68 +
offsetR;
Rpts[3].X = len *
1.0f;
Rpts[3].Y = 148 +
offsetR;
//
Green
Gpts[0].X = len *
0.0f;
Gpts[0].Y = 0 +
offsetG;
Gpts[1].X = len *
0.266f;
Gpts[1].Y = 1 +
offsetG;
Gpts[2].X = len *
0.752f;
Gpts[2].Y = 90 +
offsetG;
Gpts[3].X = len *
1.0f;
Gpts[3].Y = 153 +
offsetG;
//
Blue
Bpts[0].X = len *
0.0f;
Bpts[0].Y = 0 +
offsetB;
Bpts[1].X = len *
0.217f;
Bpts[1].Y = 12 +
offsetB;
Bpts[2].X = len *
0.919f;
Bpts[2].Y = 103 +
offsetB;
Bpts[3].X = len *
1.0f;
Bpts[3].Y = 133 + offsetB;
