Re: GDI+ bitmap saving question

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hmmm, could be disk write cacheing.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.



"ZQ" <zvkeber@xxxxxxxxx> wrote in message
news:%23X5L9dTkGHA.4276@xxxxxxxxxxxxxxxxxxxxxxx
Hi all!

Am I correct if I say that saving bitmaps using

bitmap.Save("filename", ImageFormat.Tiff);

is actually saving the bitmap in a separate thread, and that the
"filename" file is not ready for reading immediately after the next line
of the app code is processed?

I'm having one application creating the bitmap and saving it to the disk.
The timestamp of the file is 12:13:04. After the bitmap.save function,
that app initiates another app to process the bitmap (on another machine).
That other app throws an exception at 12:12:58, saying that the file does
not exist. (I check it using system.io.file.exists(filename) method, and
throw an exception manually if it doesn't exist).

Both computers are on the same domain, so i persume system clocks on both
of them are accurate. Could be false.



.



Relevant Pages

  • Re: Pasted clipboard text looks bad
    ... If I draw antialiased text onto a black transparent bitmap then the "halo" ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... Answer those GDI+ questions with the GDI+ FAQ ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Pasted clipboard text looks bad
    ... The basic new bitmap has all the pixel elements set to 0 if you draw on it with an image or a colour then these overwrite the default settings and whatever you draw onto the bitmap afterward will be affected by those settings. ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... Answer those GDI+ questions with the GDI+ FAQ ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Pasted clipboard text looks bad
    ... The fact that it is black transparent bitmap would not be important if I ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... Answer those GDI+ questions with the GDI+ FAQ ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Pasted clipboard text looks bad
    ... Yeah, exactly, black transparent bitmap. ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... Answer those GDI+ questions with the GDI+ FAQ ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Image.FromFile and Image.FromStream(MemoryStream) Dont Tally.
    ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... Next I tried reading the file into a byte array then creating the bitmap from the byte array using Image.FromStream: ... Comparing the bitmaps produced by each method, the only difference I can see is that the stable one has an extra two PropertyItems that equate to PropertyTagXResolution and ...
    (microsoft.public.dotnet.framework.drawing)