src/share/classes/com/sun/imageio/plugins/bmp/BMPImageWriter.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2003, 2007, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 572,582 **** // update the file/image Size embedded_stream.flush(); imageSize = embedded_stream.size(); long endPos = stream.getStreamPosition(); ! fileSize = (int)(offset + imageSize); stream.seek(headPos); writeSize(fileSize, 2); stream.seek(headPos); writeSize(imageSize, 34); stream.seek(endPos); --- 572,582 ---- // update the file/image Size embedded_stream.flush(); imageSize = embedded_stream.size(); long endPos = stream.getStreamPosition(); ! fileSize = offset + imageSize; stream.seek(headPos); writeSize(fileSize, 2); stream.seek(headPos); writeSize(imageSize, 34); stream.seek(endPos);