ipcx.cxx (87bc88d3) ipcx.cxx (0af288bd)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 100 unchanged lines hidden (view full) ---

109 nStatus = sal_True;
110
111 ImplReadHeader();
112
113 // BMP-Header und ggf. (eventuell zunaechst ungueltige) Farbpalette schreiben:
114 if ( nStatus )
115 {
116 aBmp = Bitmap( Size( nWidth, nHeight ), nDestBitsPerPixel );
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 100 unchanged lines hidden (view full) ---

109 nStatus = sal_True;
110
111 ImplReadHeader();
112
113 // BMP-Header und ggf. (eventuell zunaechst ungueltige) Farbpalette schreiben:
114 if ( nStatus )
115 {
116 aBmp = Bitmap( Size( nWidth, nHeight ), nDestBitsPerPixel );
117 if ( ( pAcc = aBmp.AcquireWriteAccess() ) == sal_False )
117 pAcc = aBmp.AcquireWriteAccess();
118 if ( !pAcc )
118 return sal_False;
119
120 if ( nDestBitsPerPixel <= 8 )
121 {
122 sal_uInt16 nColors = 1 << nDestBitsPerPixel;
123 sal_uInt8* pPal = pPalette;
124 pAcc->SetPaletteEntryCount( nColors );
125 for ( sal_uInt16 i = 0; i < nColors; i++, pPal += 3 )

--- 299 unchanged lines hidden ---
119 return sal_False;
120
121 if ( nDestBitsPerPixel <= 8 )
122 {
123 sal_uInt16 nColors = 1 << nDestBitsPerPixel;
124 sal_uInt8* pPal = pPalette;
125 pAcc->SetPaletteEntryCount( nColors );
126 for ( sal_uInt16 i = 0; i < nColors; i++, pPal += 3 )

--- 299 unchanged lines hidden ---