Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / May 2004

Tip: Looking for answers? Try searching our database.

Windows 2000 patch and Framework 1.1

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Artem - 12 May 2004 15:45 GMT
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 ?
Artem - 13 May 2004 07:54 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.