105人参与 • 2024-08-05 • IDE
提示:这里可以添加技术概要
procedure tform1.button2click(sender: tobject);
var bmp: tbitmap;
begin
bmp := tbitmap.create;
//bmp.assign(image1.picture.bitmap);
trueto256(image1.picture.bitmap, bmp);
image2.picture.bitmap := bmp;
bmp.free;
end;
unit unit2;
interface
uses
windows, graphics;
type
prgbcolor = ^trgbcolor;
trgbcolor = record
b, g, r: byte;
end;
pbyte = ^byte;
lcolor = record
color, times: integer;
end;
procedure trueto256(sbitmap: tbitmap; var dbitmap: tbitmap);
implementation
var
colorcount: array[0…4096] of lcolor; //为记录颜色使用频率的数组
colortable: array[0…4096] of byte; // 为记录颜色索引
您想发表意见!!点此发布评论
版权声明:本文内容由互联网用户贡献,该文观点仅代表作者本人。本站仅提供信息存储服务,不拥有所有权,不承担相关法律责任。 如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 2386932994@qq.com 举报,一经查实将立刻删除。
发表评论