mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-05 18:16:23 +03:00
0025008: wrong PPM generated in mage_AlienPixMap::savePPM
This commit is contained in:
parent
8d3f219f5d
commit
a7b491fc50
@ -331,7 +331,7 @@ bool Image_AlienPixMap::savePPM (const TCollection_AsciiString& theFileName) con
|
|||||||
Standard_Byte aByte;
|
Standard_Byte aByte;
|
||||||
for (Standard_Size aRow = 0; aRow < SizeY(); ++aRow)
|
for (Standard_Size aRow = 0; aRow < SizeY(); ++aRow)
|
||||||
{
|
{
|
||||||
for (Standard_Size aCol = 0; aCol < SizeY(); ++aCol)
|
for (Standard_Size aCol = 0; aCol < SizeX(); ++aCol)
|
||||||
{
|
{
|
||||||
// extremely SLOW but universal (implemented for all supported pixel formats)
|
// extremely SLOW but universal (implemented for all supported pixel formats)
|
||||||
aColor = PixelColor ((Standard_Integer )aCol, (Standard_Integer )aRow, aDummy);
|
aColor = PixelColor ((Standard_Integer )aCol, (Standard_Integer )aRow, aDummy);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user