A
Artem
Hi,
After installation of updating for windows 2000 (Security Bulletin
MS04-011), my program began to work
slowly. Method Graphics.DrawImage( Metafile, ....) which was worked out
earlier for one second, began to be
worked out ten minutes.
My code:
Metafile _metafile = (Metafile) Image.FromFile( filename );
Metafile _backbuffer;
.............
using( Graphics g = this.CreateGraphics() )
{
IntPtr hdc = g.GetHdc();
_backbuffer = new Metafile( hdc, new Rectangle( 0, 0, this.Width,
this.Height ), MetafileFrameUnit.Pixel );
g.ReleaseHdc(hdc);
using( Graphics gi = Graphics.FromImage( _backbuffer ) )
{
gi.DrawImage( _metafile, new Rectangle( 0, 0, this.Width,
this.Height), new Rectangle( 0, 0, _metafile.Width, _metafile.Height ),
GraphicsUnit.Pixel );
}
}
Any ideas ?
After installation of updating for windows 2000 (Security Bulletin
MS04-011), my program began to work
slowly. Method Graphics.DrawImage( Metafile, ....) which was worked out
earlier for one second, began to be
worked out ten minutes.
My code:
Metafile _metafile = (Metafile) Image.FromFile( filename );
Metafile _backbuffer;
.............
using( Graphics g = this.CreateGraphics() )
{
IntPtr hdc = g.GetHdc();
_backbuffer = new Metafile( hdc, new Rectangle( 0, 0, this.Width,
this.Height ), MetafileFrameUnit.Pixel );
g.ReleaseHdc(hdc);
using( Graphics gi = Graphics.FromImage( _backbuffer ) )
{
gi.DrawImage( _metafile, new Rectangle( 0, 0, this.Width,
this.Height), new Rectangle( 0, 0, _metafile.Width, _metafile.Height ),
GraphicsUnit.Pixel );
}
}
Any ideas ?