Definition: |
include pGUI.e
cdCanvasPutImageRectRGB(cdCanvas hCdCanvas, atom iw, ih, sequence rgb, atom x, y, w, h, xmin, xmax, ymin, ymax) |
Description: |
Puts, in a specified area of the canvas, an image with its red, green and blue components defined in the three matrices stored in byte arrays.
The (i,j) component of these matrices is at the address (j*iw+i). The pixel (0,0) is at the bottom left corner, and the pixel (iw-1,ih-1) is that the upper right corner of the image rectangle. Parameters w and h refer to the target rectangle of the canvas, so that it is possible to reduce or expand the image drawn. If w and h are 0, the size of the image is assumed (iw and ih). It also allows specifying a rectangle inside the image to be drawn, if xmin, xmax, ymin and ymax are 0 then the whole image is assumed. If the driver has bpp <=8 or only 256 colors or less, then the image is converted to 256 optimal colors using the function cdRGB2Map and is drawn using cdPutImageRectMap. |