-
-
[求助]小虾求教win32_SDK截屏问题...
-
发表于:
2007-5-9 18:11
5999
-
大牛们...SDK截取全屏幕怎么样可以直接压缩成png或者jpg阿?
typedef struct tagBITMAPINFOHEADER{
DWORD biSize;
LONG biWidth;
LONG biHeight;
WORD biPlanes;
WORD biBitCount;
DWORD biCompression;
DWORD biSizeImage;
LONG biXPelsPerMeter;
LONG biYPelsPerMeter;
DWORD biClrUsed;
DWORD biClrImportant;
} BITMAPINFOHEADER, *PBITMAPINFOHEADER;
biCompression
Specifies the type of compression for a compressed bottom-up bitmap (top-down DIBs cannot be compressed). This member can be one of the following values. Value Description
BI_RGB An uncompressed format.
BI_RLE8 A run-length encoded (RLE) format for bitmaps with 8 bpp. The compression format is a 2-byte format consisting of a count byte followed by a byte containing a color index. For more information, see Bitmap Compression.
BI_RLE4 An RLE format for bitmaps with 4 bpp. The compression format is a 2-byte format consisting of a count byte followed by two word-length color indexes. For more information, see Bitmap Compression.
BI_BITFIELDS Specifies that the bitmap is not compressed and that the color table consists of three DWORD color masks that specify the red, green, and blue components, respectively, of each pixel. This is valid when used with 16- and 32-bpp bitmaps.
BI_JPEG Windows 98/Me, Windows 2000/XP: Indicates that the image is a JPEG image.
BI_PNG Windows 98/Me, Windows 2000/XP: Indicates that the image is a PNG image.
要怎么使用呢?
CImage类也好用但是怎么存储文件到内存里面?
我只会存到文件...
我想截取全屏幕而且可以自由选取位图是32bit 16bit还是256色的话怎么做呢?
我现在只会截取全屏幕的bmp(我想截取压缩后的格式还可以只有选取颜色位数的)...
而且是24bit的...
求大虾发个代码片段..
[课程]Android-CTF解题方法汇总!