private void drawPEHeaders ( ) { long msdosOffset = 0 ; long msdosSize = withMinLength ( data . getMSDOSHeader ( ) . getHeaderSize ( ) ) ; drawPixels ( colorMap . get ( MSDOS_HEADER ) , msdosOffset , msdosSize ) ; long optOffset = data . getOptionalHeader ( ) . getOffset ( ) ; long optSize = withMinLength ( data . getOptionalHeader ( ) . getSize ( ) ) ; drawPixels ( colorMap . get ( OPTIONAL_HEADER ) , optOffset , optSize ) ; long coffOffset = data . getCOFFFileHeader ( ) . getOffset ( ) ; long coffSize = withMinLength ( COFFFileHeader . HEADER_SIZE ) ; drawPixels ( colorMap . get ( COFF_FILE_HEADER ) , coffOffset , coffSize ) ; long tableOffset = data . getSectionTable ( ) . getOffset ( ) ; long tableSize = data . getSectionTable ( ) . getSize ( ) ; if ( tableSize != 0 ) { tableSize = withMinLength ( tableSize ) ; drawPixels ( colorMap . get ( SECTION_TABLE ) , tableOffset , tableSize ) ; } }
Draws the PE Header to the structure image