直接把ico文件的后缀名由.ico改为.bmp就行啦

解决方案 »

  1.   

    直接把ico文件的后缀名由.ico改为.bmp就行啦
    对,格式一样的。
      

  2.   

    将ico加入ImageList1后可以导出bmp
      

  3.   

    还有一个笨办法:先用图象编辑器把ICO转化为BMP
      

  4.   

    直接改后缀有时会出错,还是使用软件转换吧,如:AcdSee就行。
      

  5.   

    unit Unit1;interfaceuses
      Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,jpeg,
      StdCtrls, ExtCtrls;type
      TForm1 = class(TForm)
        Button1: TButton;
        Image1: TImage;  //存放你的ico图片
        Image2: TImage;  //生成的bmp图片
        procedure Button1Click(Sender: TObject);
      private
        { Private declarations }
      public
        { Public declarations }
      end;var
      Form1: TForm1;implementation{$R *.DFM}procedure TForm1.Button1Click(Sender: TObject);
    var
    bmp:tbitmap;
    ic:ticon;
    begin
     bmp:=tbitmap.create;
     try
      with bmp do
       begin
        width:=image1.picture.width;
        height:=image1.picture.height;
        canvas.Draw(0,0,image1.picture.graphic);
        image2.picture.assign(bmp);
        savetofile('d:\tmp.bmp');//保存路径名
       end;
      finally
       bmp.free;
     end;
    end;end.
      

  6.   

    ICO和BMP的文件格式相同,用程序实现也可以:
    var
        Icon   : TIcon;
        Bitmap : TBitmap;
    begin
         Icon   := TIcon.Create;
         Bitmap := TBitmap.Create;
         Icon.LoadFromFile('c:\picture.ico');  //Load an ICO 
    from File
         Bitmap.Width := Icon.Width;
         Bitmap.Height := Icon.Height;
         Bitmap.Canvas.Draw(0, 0, Icon );
         Bitmap.SaveToFile('c:\picture.bmp'); //Convert ICO to 
    BMP!
         Icon.Free;
         Bitmap.Free;
    end;
      

  7.   

    最简单的办法就是用Photoshop另存新档即可。
    很不明确的问题居然这么多人能回答。
    哈哈哈......