Quick positioning file type

xiaoxiao2021-03-05  21

The effect of the analysis file type is achieved by the file head analysis

Stream.Readbuffer (Buffer, 2);

if Buffer = $ 4D42 thenbegin // BMPendelse if Buffer = $ D8FF thenbegin // JPEGendelse if Buffer = $ 4947 thenbegin // GIFendelse if Buffer = $ 050A thenbegin // PCXendelse if Buffer = $ 5089 thenbegin // PNGendelse if Buffer = $ 4238 thenbegin // Psdendelse if buffer = $ a659 thnbegin // rasendelse if buffer = $ da01 thenbegin // sgiendelse if buffer = $ 4949 thnbegin //...nd;

转载请注明原文地址:https://www.9cbs.com/read-38632.html

New Post(0)