DrawAutoFilledAlphaResults
(
DrawingObjects oDrawingObjects,
String sSourceColumnName,
Double dSourceCalculationNumber1,
Double dSourceCalculationNumber2,
Int32 iDecimalPlaces,
Double dDestinationNumber1,
Double dDestinationNumber2,
Rectangle oColumnRectangle,
Int32 iResultsLeft,
Int32 iResultsRight,
ref Int32 iTop
)
{
Debug.Assert(oDrawingObjects != null);
Debug.Assert( !String.IsNullOrEmpty(sSourceColumnName) );
Debug.Assert(iDecimalPlaces >= 0);
AssertValid();
// The alpha results look like the color results, with the colors set
// to black with different alphas. Calculate the colors.
AlphaConverter oAlphaConverter = new AlphaConverter();
Int32 iDestinationAlpha1 = (Int32)oAlphaConverter.WorkbookToGraph(
(Single)dDestinationNumber1 );
Int32 iDestinationAlpha2 = (Int32)oAlphaConverter.WorkbookToGraph(
(Single)dDestinationNumber2 );
Color oDestinationColor1 =
Color.FromArgb(iDestinationAlpha1, SystemColors.WindowText);
Color oDestinationColor2 =
Color.FromArgb(iDestinationAlpha2, SystemColors.WindowText);
DrawColorBarResults(oDrawingObjects, sSourceColumnName, "Opacity",
dSourceCalculationNumber1, dSourceCalculationNumber2,
iDecimalPlaces, oDestinationColor1, oDestinationColor2,
oColumnRectangle, iResultsLeft, iResultsRight, ref iTop);
}