Bitmap bm = new Bitmap(2, 2);
bm.SetPixel(0, 0, Color.Black);
bm.SetPixel(0, 1, Color.Red);
bm.SetPixel(1, 0, Color.Red);
bm.SetPixel(1, 1, Color.Black);
FarPoint.Win.Spread.CustomFocusIndicatorRenderer cfi = new FarPoint.Win.Spread.CustomFocusIndicatorRenderer(bm, 2);
fpSpread1.FocusRenderer = cfi;
Bitmap b;
b = cfi.Bitmap;
Color c = b.GetPixel(0, 0);
MessageBox.Show(c.ToString());
Dim bm As New Bitmap(2, 2)
bm.SetPixel(0, 0, Color.Black)
bm.SetPixel(0, 1, Color.Red)
bm.SetPixel(1, 0, Color.Red)
bm.SetPixel(1, 1, Color.Black)
Dim cfi As New FarPoint.Win.Spread.CustomFocusIndicatorRenderer(bm, 2)
FpSpread1.FocusRenderer = cfi
Dim b As Bitmap
b = cfi.Bitmap
Dim c As Color = b.GetPixel(0, 0)
MsgBox(c.ToString())