当前位置:首页
开发技术指南» 文章正文
    引言:

    摘要: 大家随便说说。 ......
    摘要: 如题! ......


“LPBITMAPV5HEADER”结构是如何定义的

请问“LPBITMAPV5HEADER”结构是如何定义的?

NO.1   作者: GR

typedef   struct   {    
      DWORD                 bV5Size;    
      LONG                   bV5Width;    
      LONG                   bV5Height;    
      WORD                   bV5Planes;    
      WORD                   bV5BitCount;    
      DWORD                 bV5Compression;    
      DWORD                 bV5SizeImage;    
      LONG                   bV5XPelsPerMeter;    
      LONG                   bV5YPelsPerMeter;    
      DWORD                 bV5ClrUsed;    
      DWORD                 bV5ClrImportant;    
      DWORD                 bV5RedMask;    
      DWORD                 bV5GreenMask;    
      DWORD                 bV5BlueMask;    
      DWORD                 bV5AlphaMask;    
      DWORD                 bV5CSType;    
      CIEXYZTRIPLE   bV5Endpoints;    
      DWORD                 bV5GammaRed;    
      DWORD                 bV5GammaGreen;    
      DWORD                 bV5GammaBlue;    
      DWORD                 bV5Intent;    
      DWORD                 bV5ProfileData;    
      DWORD                 bV5ProfileSize;    
      DWORD                 bV5Reserved;    
  }   BITMAPV5HEADER,   *PBITMAPV5HEADER,*LPBITMAPV5HEADER;    
   
  LPBITMAPV5HEADER应该是后来加上去的.

NO.2   作者: eastred

BITMAPV5HEADER  
   
  typedef   struct   {    
      DWORD                 bV5Size;    
      LONG                   bV5Width;    
      LONG                   bV5Height;    
      WORD                   bV5Planes;    
      WORD                   bV5BitCount;    
      DWORD                 bV5Compression;    
      DWORD                 bV5SizeImage;    
      LONG                   bV5XPelsPerMeter;    
      LONG                   bV5YPelsPerMeter;    
      DWORD                 bV5ClrUsed;    
      DWORD                 bV5ClrImportant;    
      DWORD                 bV5RedMask;    
      DWORD                 bV5GreenMask;    
      DWORD                 bV5BlueMask;    
      DWORD                 bV5AlphaMask;    
      DWORD                 bV5CSType;    
      CIEXYZTRIPLE   bV5Endpoints;    
      DWORD                 bV5GammaRed;    
      DWORD                 bV5GammaGreen;    
      DWORD                 bV5GammaBlue;    
      DWORD                 bV5Intent;    
      DWORD                 bV5ProfileData;    
      DWORD                 bV5ProfileSize;    
      DWORD                 bV5Reserved;    
  }   BITMAPV5HEADER,   *PBITMAPV5HEADER;    
  Members  
  bV5Size    
  Specifies   the   number   of   bytes   required   by   the   structure.   Applications   should   use   this   member   to   determine   which   bitmap   information   header   structure   is   being   used.    
  bV5Width    
  Specifies   the   width   of   the   bitmap,   in   pixels.    
  If   bV5Compression   is   BI_JPEG   or   BI_PNG,   the   bV5Width   member   specifies   the   width   of   the   decompressed   JPEG   or   PNG   image   in   pixels.    
   
  bV5Height    
  Specifies   the   height   of   the   bitmap,   in   pixels.   If   the   value   of   bV5Height   is   positive,   the   bitmap   is   a   bottom-up   DIB   and   its   origin   is   the   lower-left   corner.   If   bV5Height   value   is   negative,   the   bitmap   is   a   top-down   DIB   and   its   origin   is   the   upper-left   corner.    
  If   bV5Height   is   negative,   indicating   a   top-down   DIB,   bV5Compression   must   be   either   BI_RGB   or   BI_BITFIELDS.   -down   DIBs   cannot   be   compressed.    
   
  If   bV5Compression   is   BI_JPEG   or   BI_PNG,   the   bV5Height   member   specifies   the   height   of   the   decompressed   JPEG   or   PNG   image   in   pixels.    
   
  bV5Planes    
  Specifies   the   number   of   planes   for   the   target   device.   This   value   must   be   set   to   1.    
  bV5BitCount    
  Specifies   the   number   of   bits   that   define   each   pixel   and   the   maximum   number   of   colors   in   the   bitmap.    
  This   member   can   be   one   of   the   following   values.   Value   Meaning    
  0   The   number   of   bits   per   pixel   is   specified   or   is   implied   by   the   JPEG   or   PNG   file   format.    
  1   The   bitmap   is   monochrome,   and   the   bmiColors   member   of   BITMAPINFO   contains   two   entries.   Each   bit   in   the   bitmap   array   represents   a   pixel.   If   the   bit   is   clear,   the   pixel   is   displayed   with   the   color   of   the   first   entry   in   the   bmiColors   color   table.   If   the   bit   is   set,   the   pixel   has   the   color   of   the   second   entry   in   the   table.    
  4   The   bitmap   has   a   maximum   of   16   colors,   and   the   bmiColors   member   of   BITMAPINFO   contains   up   to   16   entries.   Each   pixel   in   the   bitmap   is   represented   by   a   4-bit   index   into   the   color   table.   For   example,   if   the   first   byte   in   the   bitmap   is   0x1F,   the   byte   represents   two   pixels.   The   first   pixel   contains   the   color   in   the   second   table   entry,   and   the   second   pixel   contains   the   color   in   the   sixteenth   table   entry.    
  8   The   bitmap   has   a   maximum   of   256   colors,   and   the   bmiColors   member   of   BITMAPINFO   contains   up   to   256   entries.   In   this   case,   each   byte   in   the   array   represents   a   single   pixel.    
  16   The   bitmap   has   a   maximum   of   2^16   colors.   If   the   bV5Compression   member   of   the   BITMAPV5HEADER   structure   is   BI_RGB,   the   bmiColors   member   of   BITMAPINFO   is   NULL.   Each   WORD   in   the   bitmap   array   represents   a   single   pixel.   The   relative   intensities   of   red,   green,   and   blue   are   represented   with   five   bits   for   each   color   component.   The   value   for   blue   is   in   the   least   significant   five   bits,   followed   by   five   bits   each   for   green   and   red.   The   most   significant   bit   is   not   used.   The   bmiColors   color   table   is   used   for   optimizing   colors   used   on   palette-based   devices,   and   must   contain   the   number   of   entries   specified   by   the   bV5ClrUsed   member   of   the   BITMAPV5HEADER.    
  If   the   bV5Compression   member   of   the   BITMAPV5HEADER   is   BI_BITFIELDS,   the   bmiColors   member   contains   three   DWORD   color   masks   that   specify   the   red,   green,   and   blue   components,   respectively,   of   each   pixel.   Each   WORD   in   the   bitmap   array   represents   a   single   pixel.  
   
  When   the   bV5iCompression   member   is   BI_BITFIELDS,   bits   set   in   each   DWORD   mask   must   be   contiguous   and   should   not   overlap   the   bits   of   another   mask.   All   the   bits   in   the   pixel   do   not   need   to   be   used.    
     
  24   The   bitmap   has   a   maximum   of   2^24   colors,   and   the   bmiColors   member   of   BITMAPINFO   is   NULL.   Each   3-byte   triplet   in   the   bitmap   array   represents   the   relative   intensities   of   blue,   green,   and   red,   respectively,   for   a   pixel.   The   bmiColors   color   table   is   used   for   optimizing   colors   used   on   palette-based   devices,   and   must   contain   the   number   of   entries   specified   by   the   bV5ClrUsed   member   of   the   BITMAPV5HEADER   structure.      
  32   The   bitmap   has   a   maximum   of   2^32   colors.   If   the   bV5Compression   member   of   the   BITMAPV5HEADER   is   BI_RGB,   the   bmiColors   member   of   BITMAPINFO   is   NULL.   Each   DWORD   in   the   bitmap   array   represents   the   relative   intensities   of   blue,   green,   and   red,   respectively,   for   a   pixel.   The   high   byte   in   each   DWORD   is   not   used.   The   bmiColors   color   table   is   used   for   optimizing   colors   used   on   palette-based   devices,   and   must   contain   the   number   of   entries   specified   by   the   bV5ClrUsed   member   of   the   BITMAPV5HEADER.    
  If   the   bV5Compression   member   of   the   BITMAPV5HEADER   is   BI_BITFIELDS,   the   bmiColors   member   contains   three   DWORD   color   masks   that   specify   the   red,   green,   and   blue   components   of   each   pixel.   Each   DWORD   in   the   bitmap   array   represents   a   single   pixel.  
     
   
  LPBITMAPV5HEADER是指针吧~~  
  去看一下MSDN吧~


    摘要: 最近发现程序存在一些问题,就是不能下载分类里的电影 其实也不能算什么bug,主要是刚开始我以为所有的电影都可以在首页上下载,为了防止广告出现所以就把其他的连接都屏蔽了,后来一看,分类里面还有好多电影………… 55555555555555555555555555犯了如此低级的错误。 临近放假,我的电脑已经装相了,大家先把那些能下载的下回去看着,估计看一个寒假是够了(我同学今天刚把天龙八部下回......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE