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;