请问Delphi7下的ZIntQRCode控件,怎么打印二维码?谢谢!
解决方案 »
- Inno setup打包工具的使用? 用的是delphi
- 关于 TFrame 在不同 bpl 项目中重复使用 ?
- 如何将GetMessage(Msg, 0, 0, 0)获得消息转换成字符串,然后在发到指定的邮箱?
- 新手上路,菜鸟问题!
- 如何给dos窗口发 <ctrl+c>呀?在线等待...
- 数据转换问题?(paradox7.0 to sql2000)在线等--------UP有分
- installshield怎么找不到?
- 在软件中加入广告(收费方面)的问题
- 急!急!在線等候!
- 关于报表的问题,请帮忙
- 关于Firebird数据库操作数组字段的问题!
- 如何使用 Delphi RestClient 读取流数据?
再
Form1.Print;
procedure GraphicToBitmap(const Src: Graphics.TGraphic;
const Dest: Graphics.TBitmap;
const TransparentColor: Graphics.TColor=Graphics.clNone);
begin
// Do nothing if either source or destination are nil
if not Assigned(Src) or not Assigned(Dest) then
Exit;
// Size the bitmap
Dest.Width := Src.Width;
Dest.Height := Src.Height;
if Src.Transparent then
begin
// Source graphic is transparent, make bitmap behave transparently
Dest.Transparent := True;
if (TransparentColor <> Graphics.clNone) then
begin
// Set destination as transparent using required colour key
Dest.TransparentColor := TransparentColor;
Dest.TransparentMode := Graphics.tmFixed;
// Set background colour of bitmap to transparent colour
Dest.Canvas.Brush.Color := TransparentColor;
end
else
// No transparent colour: set transparency to automatic
Dest.TransparentMode := Graphics.tmAuto;
end;
// Clear bitmap to required background colour and draw bitmap
Dest.Canvas.FillRect(Classes.Rect(0, 0, Dest.Width, Dest.Height));
Dest.Canvas.Draw(0, 0, Src);
end;
资料:
Delphi 调用Zint 实现二维码功能
Delphi Graphic转换成Bitmap
(转载) Delphi中打印条码的方法