for (i = 0; i < (int)wNumColors; i++) { if (bWinStyleDIB) { // 读取红色绿色蓝色分量 lpPal->palPalEntry[i].peRed = lpbmi->bmiColors[i].rgbRed; lpPal->palPalEntry[i].peGreen = lpbmi->bmiColors[i].rgbGreen; lpPal->palPalEntry[i].peBlue = lpbmi->bmiColors[i].rgbBlue; ...
DIB_RGB_COLORS 颜色表包含了RG颜色 注解 用GetDeviceCaps判断设备是否支持这个函数 '数据结构定义: Public Type BITMAPINFOHEADER ' BMP信息头40 bytes biSize As Long信息头大小 biWidth As Long图像宽度以像素为单位 biHeight As Long图像高度以像素为单位 biPlanes As Integer位平面数为1 biBitCount As Integer每...
for (i = 0; i < (int)wNumColors; i++) { if (bWinStyleDIB) { // 读取红色绿色蓝色分量 lpPal->palPalEntry[i].peRed = lpbmi->bmiColors[i].rgbRed; lpPal->palPalEntry[i].peGreen = lpbmi->bmiColors[i].rgbGreen; lpPal->palPalEntry[i].peBlue = lpbmi->bmiColors[i].rgbBlue; ...