PixbufSection.cs: ajdust writetestfile to work on windows
This commit is contained in:
parent
c4da085925
commit
b6b2183954
1 changed files with 4 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
|||
using System;
|
||||
using System.IO;
|
||||
using System.Threading;
|
||||
using Gdk;
|
||||
using Gtk;
|
||||
|
@ -54,8 +55,9 @@ namespace Samples
|
|||
var startmem = GC.GetTotalMemory (true);
|
||||
var testfile = "Textpic.png";
|
||||
|
||||
using (var writeTestFile = new Pixbuf (typeof(ImageSection).Assembly, "Testpic")) {
|
||||
writeTestFile.Save (testfile, "png");
|
||||
using var teststream = typeof(ImageSection).Assembly.GetManifestResourceStream("Testpic");
|
||||
using (var writeTestFile = new FileStream(testfile, FileMode.Create)) {
|
||||
teststream.CopyTo(writeTestFile);
|
||||
}
|
||||
|
||||
using (var heatup = new Pixbuf (testfile)) {
|
||||
|
|
Loading…
Reference in a new issue