error = glu.ScaleImageRaw(format, widthIn, heightIn, typeIn, pixelsIn, widthOut, heightOut, typeOut, pixelsOut)
glu.ScaleImageRaw()scales a pixel image using the appropriate pixel store modes to unpack data from the source image and pack data into the destination image.
When shrinking an image,
glu.ScaleImageRaw() uses a box filter to sample the source image and create pixels
for the destination image. When an image is magnified, the pixels from the source image are linearly interpolated
to create the destination image.
format must be one of
typeOut must be one of
A return value of 0 indicates success. Otherwise glu.ScaleImage() returns a GLU error code that indicates what the problem is (See glu.ErrorString for details.).
Please note that this command operates directly with memory pointers. There is also a version which works with tables instead of memory pointers, but this is slower of course. See glu.ScaleImage for details. See Working with pointers for details on how to use memory pointers with Hollywood.
Please consult an OpenGL reference manual for more information.