Location:
Search - SetPixel b
Search list
Description: 利用最原始的setpixel函数显示各种类型的bmp图像,对于理解bmp图片帮助很大-Using the most primitive setpixel function display various types of bmp images, bmp image of great help for understanding
Platform: |
Size: 2796544 |
Author: long |
Hits:
Description: 画图程序,包含线、点、圆
明位图中的颜色,有若干个表项,每一个表项是一个RGBQUAD类型的结构,定义一种颜色。RGBQUAD结构的定义如下-line, row, round
UCHAR b=buffer[(i*width+j)*3+realPitch]
UCHAR g=buffer[(i*width+j)*3+1+realPitch]
UCHAR r=buffer[(i*width+j)*3+2+realPitch]
pDC->SetPixel(j,height-i,RGB(r,g,b))
Platform: |
Size: 1938432 |
Author: 陈远锋 |
Hits: