Вниз
Скачать: CL | DM;

как скопировать *.jpg в bitmap   Найти похожие ветки 

← →
Serg11   (2003-02-11 22:41) [0]

как скопировать *.jpg в bitmap


← →
SniZ ©   (2003-02-11 22:53) [1]

unit Unit1;

interface

uses
Windows, Messages, SysUtils, Classes, Graphics, Controls,
Forms, Dialogs, StdCtrls, ExtCtrls;

type
TForm1 = class(TForm)
Button1: TButton;
Image1: TImage;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;

var
Form1: TForm1;

implementation

{$R *.DFM}

uses JPEG;

procedure TForm1.Button1Click(Sender: TObject);
var
JPEG: TJPEGImage;
Bitmap: TBitmap;
begin
JPEG := TJPEGImage.Create;
Bitmap := TBitmap.Create;
try
Bitmap.LoadFromFile("C:\Program Files\Common Files\alarm.bmp");
JPEG.Assign(Bitmap);
Image1.Picture.Assign(JPEG);
finally
JPEG.Free;
Bitmap.Free;
end;
end;

end.



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.44 MB
Время: 0.01 c
14-63832
ZeroDivide
2003-02-03 13:44
2003.02.20
Группа крови на рукаве, мой порядковый IP на рукаве.


7-63886
_Vovan_
2002-12-19 15:20
2003.02.20
Кнопочка


3-63521
UnDISCOvery
2003-01-31 17:58
2003.02.20
MIDAS ! Запаздывает обновление !


14-63836
Sword
2003-02-04 18:06
2003.02.20
Направление ProgressBar


3-63592
Igor_thief
2003-02-04 11:11
2003.02.20
Preview




   Наверх