I reopen the file in Paint.NET: then it’s fubar! Creating the testfiles in oldskool Paint solves this (because you only have GIF-supported colors in your toolbar)… Use it in my anigif-code: no more greatness. binaryWriter.Write( “ ”) //Image terminator }ĭamn you Paint.NET! I make a test-image: looks great. binaryWriter.Write(buf1, 0, 781) //Header & global color table binaryWriter.Write(buf2, 0, 19) //Application extension }īinaryWriter.Write(buf3, 0, 8) //Graphic extension binaryWriter.Write(buf1, 789, buf1.Length – 790) //Image data if (picCount = stringCollection.Count – 1) Image.Save(memoryStream, ImageFormat.Gif) Image = Bitmap.FromFile(stringCollection) buf2 = 48 //0 buf2 = 3 //Size of block buf2 = 1 //īuf2 = 0 //Block terminator buf3 = 33 //Extension introducer buf3 = 249 //Graphic control extension buf3 = 4 //Size of block buf3 = 9 //Flags: reserved, disposal method, user input, transparent color buf3 = 10 //Delay time low byte buf3 = 3 //Delay time high byte buf3 = 255 //Transparent color index buf3 = 0 //Block terminator binaryWriter = new BinaryWriter(Response.OutputStream) įor ( int picCount = 0 picCount < stringCollection.Count picCount++) Variable declaration stringCollection = a_StringCollection_containing_images īuf2 = 33 //extension introducer buf2 = 255 //application extension buf2 = 11 //size of block buf2 = 78 //N buf2 = 69 //E buf2 = 84 //T buf2 = 83 //S buf2 = 67 //C buf2 = 65 //A buf2 = 80 //P buf2 = 69 //E buf2 = 50 //2 buf2 = 46 //. Variable declaration StringCollection stringCollection
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |