Mercurial > hg > octave-image
changeset 65:b421bf23c502
Fixing off-by-one error in color map indexing.
author | persquare |
---|---|
date | Wed, 07 Jul 2004 07:58:40 +0000 |
parents | 6e33849c9229 |
children | 6c04d00e9db1 |
files | bmpwrite.m |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bmpwrite.m +++ b/bmpwrite.m @@ -37,7 +37,7 @@ ## raster image, each line on a 32-bit boundary, padded with zeros ## lines written bottom to top. - fwrite(file,postpad(flipud(x)',ceil(columns(x)/4)*4),"uchar",0,arch); + fwrite(file,postpad(flipud(x-1)',ceil(columns(x)/4)*4),"uchar",0,arch); fclose(file); endfunction