图形库手册中说的这个函数是什么意思啊?大家知道怎么编写吗?或者可以帮忙解释一下:
2.2.1.6 Pixel DrawMultiple
Draws a horizontal sequence of pixels on the screen.
Prototype:
void PixelDrawMultiple( void *pvDisplayData,
long lX,
long lY,
long lX0, *1*
long lCount, *2*
long lBPP, *3*
const unsigned char *pucData, *4*
const unsigned char *pucPalette *5*)
参数:
lX0 is sub-pixel offset within the pixel data(应该是像素点不能超过范围), which is valid for 1 or 4 bit per pixel formats(这句是什么意思?)
lCount is the number of pixel to draw.(麻烦也顺便说明一下哈)
lBPP is the number of bits per pixel; must be 1,4, or 8(什么意思?)
pucData is a pointer to the pixel data. For 1 and 4 bit per pixel formats, the most significant bit(s) represent the left-most pixel.
pucPalette is a pointer to the palette used to draw the pixels.
函数功能描述:
This function draws a horizontal sequence of pixels on the screen, using the supplied palette. For 1 bit per pixel format, the palette contains pre-translated colors; for 4 and 8 bit per pixel formats, the palette contains 24-bit RGB values that must be translated before being written to the display.
忽然想起来去年显示BMP图片的事情来了。然后把以前的资料拿来看看。把这个弄明白了。
lBPP is the number of bits per pixel; must be 1,4, or 8
在BMP图片中,可以读到这样的值:
biBitCount=1:黑白二色图
biBitCount=4:16色图
biBitCount=8:256色图
biBitCount=24:24位真彩色图
应该是一个意思。