From cc0ecd68054eec30e3a26bc690d0981a403f4301 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sat, 18 Sep 2010 15:46:58 +0200 Subject: cubeit: Make the output image much bigger --- src/cubeit.c | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) (limited to 'src/cubeit.c') diff --git a/src/cubeit.c b/src/cubeit.c index 53194c66..814cf68a 100644 --- a/src/cubeit.c +++ b/src/cubeit.c @@ -290,7 +290,11 @@ static void write_slice(const char *filename, double *vals, int z, int x, y; float max = 0.0; int w, h; + int pw, ph; + int zoom = 32; + pw = xs * zoom; + ph = ys * zoom; w = xs; h = ys; @@ -333,7 +337,7 @@ static void write_slice(const char *filename, double *vals, int z, } png_init_io(png_ptr, fh); - png_set_IHDR(png_ptr, info_ptr, w, h, 8, + png_set_IHDR(png_ptr, info_ptr, pw, ph, 8, PNG_COLOR_TYPE_RGB, PNG_INTERLACE_NONE, PNG_COMPRESSION_TYPE_DEFAULT, PNG_FILTER_TYPE_DEFAULT); @@ -343,16 +347,18 @@ static void write_slice(const char *filename, double *vals, int z, max /= boost; if ( max <= 6 ) { max = 10; } - for ( y=0; y