急,如何获得图像的位深度(100分)(100分)

  • 主题发起人 主题发起人 zmldm
  • 开始时间 开始时间
Z

zmldm

Unregistered / Unconfirmed
GUEST, unregistred user!
我想获得图像的位深度,用imageen只能得到bitcount而不是depth,请高手指教,谢了。
 
depth 是啥?
 
depth就是图像的位深度啊,在xp中,看图像文件的属性可以看到。不知道如何在delphi中实现。
 
TBitmap.PixelFormat;
type TPixelFormat = (pfDevice, pf1bit, pf4bit, pf8bit, pf15bit, pf16bit, pf24bit, pf32bit, pfCustom);

pfDevice The bitmap is stored as a device-dependent bitmap.
pf1bit The bitmap is a device-independent bitmap with one bit per pixel (black and white palette)
pf4bit The bitmap is a device-independent bitmap that uses a 16-color palette.
pf8bit The bitmap is a device-independent bitmap that uses a 256color palette.
pf15bit The bitmap is a device-independent true-color bitmap that uses 15 bits per pixel (RGB compression).
pf16bit The bitmap is a device-independent true-color bitmap that uses 16 bits per pixel (bitfield compression).

pf24bit The bitmap is a device-independent true-color bitmap that uses 24 bits per pixel.
pf32bit The bitmap is a device-independent true-color bitmap that uses 32 bits per pixel (RGB compression).
pfCustom The bitmap uses some other format. TBitmap does not support pfCustom.
 
我自己解决了,哈哈。送你100分吧,呜呜。
 
to apw:
您的答复很好,多谢了。但是我结束这个问题的时候您的答复还没有出现,没能给您加分,很抱歉。
 
后退
顶部