|
NAMEgluScaleImage - scale an image to an arbitrary sizeC SPECIFICATIONGLint gluScaleImage( GLenum format,GLsizei wIn, GLsizei hIn, GLenum typeIn, const void *dataIn, GLsizei wOut, GLsizei hOut, GLenum typeOut, GLvoid* dataOut ) PARAMETERS
DESCRIPTIONgluScaleImage 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, gluScaleImage uses a box filter to sample the source image and create pixels for the destination image. When magnifying an image, the pixels from the source image are linearly interpolated to create the destination image. A return value of 0 indicates success, otherwise a GLU error code is returned (see gluErrorString). See the glReadPixels reference page for a description of the acceptable values for format, typeIn, and typeOut. ERRORSGLU_INVALID_VALUE is returned if wIn, hIn, wOut, or hOut are < 0.GLU_INVALID_ENUM is returned if format, typeIn, or typeOut are not legal. SEE ALSOglDrawPixels, glReadPixels, gluBuild1DMipmaps, gluBuild2DMipmaps, gluErrorString Visit the GSP FreeBSD Man Page Interface. |