private void drawSections ( ) { SectionTable table = data . getSectionTable ( ) ; long sectionTableOffset = table . getOffset ( ) ; long sectionTableSize = table . getSize ( ) ; drawPixels ( colorMap . get ( SECTION_TABLE ) , sectionTableOffset , sectionTableSize ) ; logger . info ( "x pixels: " + getXPixels ( ) ) ; logger . info ( "y pixels: " + getYPixels ( ) ) ; logger . info ( "bytesPerPixel: " + bytesPerPixel ( ) ) ; for ( SectionHeader header : table . getSectionHeaders ( ) ) { long sectionOffset = header . getAlignedPointerToRaw ( ) ; logger . info ( "drawing section to: " + sectionOffset ) ; long sectionSize = new SectionLoader ( data ) . getReadSize ( header ) ; logger . info ( "drawing section size: " + sectionSize ) ; long pixelStart = getPixelNumber ( sectionOffset ) ; logger . info ( "pixelStart: " + pixelStart ) ; drawPixels ( getSectionColor ( header ) , sectionOffset , sectionSize ) ; } }
Draw the sections to the structure image .