您现在的位置:首页 >> VCL >> VCL >> 内容

Delphi中应用自定义透明色控制的TImage组件

时间:2011/9/3 16:23:09 点击:

  核心提示:600) this.width = 600;'>procedure TForm1.FormCreate(Sender: TObject) ;beginImage1.Transparent := Fal...

600) this.width = 600;">

procedure TForm1.FormCreate(Sender: TObject) ;
begin
  Image1.Transparent := False;

  Image2.Transparent := True;

  Image3.Transparent := True;

  with Image3.Picture.Bitmap do
  begin
    //middle of the image
    TransparentColor := Canvas.Pixels[24,24];
    //actually not needed
    TransparentMode := tmFixed;
  end;
end;

作者:站长 来源:转载
共有评论 0相关评论
发表我的评论
  • 大名:
  • 内容:
本类推荐
  • 没有
本类固顶
  • 没有
  • 盒子文章(www.2ccc.com) © 2024 版权所有 All Rights Reserved.
  • 沪ICP备05001939号