如何控制 *.bitmap 的颜色?(30分)

  • 主题发起人 赵建东
  • 开始时间

赵建东

Unregistered / Unconfirmed
GUEST, unregistred user!
用 Image1接收扫描仪的图像,扫描仪设置,实际扫描多用 "黑白两色, 1 bit"
可是用 Image1.Picture.SaveToFile 的结果文件颜色为 16 bit
(系统显示卡设置为 16bit)如何使接收到图像为 黑白两色 1 bit ?
var
hdib, testdib: hbitmap;
begin
hDib := 0;
TestDib := TWAIN_GetDib(0); //接收扫描仪图像
CopyDibIntoImage(TestDib, Image1);
Image1.Picture.SaveToFile('aaa');
很抱歉,我只用30分可支付了.
 
image1.Picture.Bitmap.PixelFormat:=pf1bit;
 
赵老师:您用的是什么扫描库/控件呢?
 

Similar threads

S
回复
0
查看
1K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
933
SUNSTONE的Delphi笔记
S
S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
顶部 底部