Code: Select all
unsigned char *pixels = new unsigned char[width*height];
image.write( 0, 0, width, height, "I", CharPixel, pixels );
Code: Select all
unsigned char *pixels = new unsigned char[width*height];
image.write( 0, 0, width, height, "I", CharPixel, pixels );
Code: Select all
@pixels = $image->GetPixels(map=>'I', height=>$height, width=>$width, normalize=>true);