Windows 2000 patch and Framework 1.1

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 ?
 
A

Artem

When the EMF file is located on a local disk that all works as before. But
when picture is located on a network drive (Novell) its drawing very
slowly.

Help me, please
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top