this.a.a(text1, font1, brush2, new RectangleF(0f, 0f, 100f, 100f), format1);
this.a.a(text1, font1, brush1, new RectangleF(0f, 0f, 100f - ef3.Width, 100f - ef3.Height), format1);
…………………………
}
4. 打开ILDASM 载入DundasWebChart.dll文件,然后转储到指定文件夹中
打开DundasWebchart.il 找到绘画水印的位置
如下:
// IL_0b1a: ldc.i4.0=(this.e=true); //将其改为IL_0b1a: ldc.i4.1
IL_0b1a: ldc.i4.0
IL_0b1b: callvirt instance void [System.Drawing]System.Drawing.StringFormat::set_Alignment(valuetype [System.Drawing]System.Drawing.StringAlignment)
IL_0b20: ldloc.s V_24
IL_0b22: ldc.i4.1
保存,重新编译
ilasm /dll /RESOURCE=DundasWebChart.res DundasWebChart.il
覆盖到D:\Program Files\Dundas Software\Charting\WebControlVS2005\Samples\bin目录