Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2003.02.20;
Скачать: 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 вся ветка

Текущий архив: 2003.02.20;
Скачать: CL | DM;

Наверх




Память: 0.46 MB
Время: 0.017 c
1-63640
Separator
2003-02-11 18:10
2003.02.20
a*x^3 + b*x^2 + d*x + c = 0


7-63884
Djon007
2002-12-18 21:46
2003.02.20
Turn Off And Restart


4-63917
АлексКриппер
2003-01-09 08:51
2003.02.20
Как писать в память?


7-63885
Tolea
2002-12-18 16:13
2003.02.20
Печать текста не на локальном принтере


3-63591
_pavel_
2003-02-04 13:05
2003.02.20
Fast Report