Source address: http://download.csdn.net/detail/crystal_lz/9466073 The results are as follows:
All code was supposed to write their own to find the information about the GIF file format and LZW compression algorithm But found that this was not enough don't know how to set up the color table online, find information related to the seems to be no estimate is only some image processing books inside a So the code is not all is what I write is a download & lt; AnimatedGifEncoder> To change honestly feel efficiency is slow but I have powerless without access to relevant information don't know how to go to rewrite optimization only rewrite the code Recording screen code is encapsulated into a DLL convenient other programs call There are two main kinds of inside
Easy to use simple
ScreenRecorder sr=new ScreenRecorder (+ 2)//two structure your code The sr. Start ();// The sr. Stop ();//pause The sr. The Clear ();//empty has recorded Dictionary Recorded frames.=the sr frames//frame and the corresponding delay
GIFCreator gc=new GIFCreator (width, height, GIFCreator. GIFColorDepth. Depth8Bit);//create a GIF image Gc. AddFrame (Image, int)//add a frame Image and the corresponding delay The Image of gc. GetGifImage () Byte [] gc. GetImageBytes ()//get the GIF image object and get the image binary data
CodePudding user response:
Don't know why the above which a GIF Google browser this picture in half and not to other browsers including mobile browser or graphical viewer normal I don't know what situation,,,,,,, but I tried to record a picture by Google browser open and normal is just a coincidence or is I save the recorded files have been replaced the wrong anyway, no matter the GIF to record this stuff online I just study a lot of,,
CodePudding user response:
Support it, it's a pity that Gif only support a maximum of 256 colors, in some cases, the color will be obvious distortion, people like to use BB FlashBack this screen recording tool, export Flash SWF format, small volume of good quality,