图像位深度转换 C++Builder

wp859859 2017-07-27 04:17:02
哪位大神能提供下,C++Builder 对图像位深度转换的方法,谢谢!qq邮箱:970898331@qq.com
...全文
211 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
wp859859 2017-07-31
  • 打赏
  • 举报
回复
找到了,谢谢大家
ooolinux 2017-07-27
  • 打赏
  • 举报
回复
TBitmap::PixelFormat Indicates the bit format of the bitmap image, specifying how the image is displayed and how the pixels of the bitmap image are stored in memory. enum TPixelFormat {pfDevice, pf1bit, pf4bit, pf8bit, pf15bit, pf16bit, pf24bit, pf32bit, pfCustom}; __property TPixelFormat PixelFormat = {read=GetPixelFormat, write=SetPixelFormat, nodefault}; Description Use PixelFormat to change a TBitmap's internal image to a particular memory format and color depth, or to find out what memory format and color depth a TBitmap is using. For example, PixelFormat can be used to set the pixel format of the bitmap image to 8-bit for video drivers that cannot display the native format of a bitmap image. Changing the pixel format is most commonly used with ScanLine, because your code must decode the pixel data accessed by ScanLine. Image-editing tools usually use one pixel for all internal image operations and copy the results to the screen (in whatever format) as the last step. —————————— TJPEGImage::PixelFormat Determines whether the JPEG image is displayed in 24 or 8-bit format. enum TJPEGPixelFormat {jf24Bit, jf8Bit}; __property TJPEGPixelFormat PixelFormat = {read=FPixelFormat, write=SetPixelFormat, nodefault }; Description Use PixelFormat to set the pixel format of the jpeg image to 8-bit for video drivers that cannot display 24-bit. The native format of a jpeg image is 24-bit. PixelFormat is used for decompression, that is, for reading in files. PixelFormat will also apply to a bitmap if the image is copied to it.

1,221

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder Windows SDK/API
社区管理员
  • Windows SDK/API社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧