Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2006.03.12;
Скачать: CL | DM;

Вниз

TImage   Найти похожие ветки 

 
Wel   (2006-02-21 23:31) [0]

Уважаемые мастера. Для того чтобы последовательно загрузить jpg в Image. я использовал следующий код, но с каждым добавлением Image и код соответственно увеличивается. Подскажите пожалуйста как можно иначе прописать. Если не затруднит то отпишите кусочек кода . procedure TForm1.FileListBox1DblClick(Sender: TObject);
var f: integer; FS:TFilestream;
begin
FS := TFileStream.Create(FileListBox1.Filename, fmOpenRead or fmShareDenyWrite);
 f := FS.Size; f := f div 1024;
if Image1.picture.graphic = nil then Label1.Caption := IntToStr(f) +" Kb" else
if Image2.picture.graphic = nil then Label2.Caption := IntToStr(f) +" Kb" else
if Image3.picture..........
if Image15.picture.graphic = nil then Label15.Caption := IntToStr(f) +" Kb" ;

if Image1.Picture.Graphic= nil then Image1.Picture.Assign(ViewImage.Picture) else
if Image2.Picture.Graphic= nil then Image2.Picture.Assign(ViewImage.Picture) else
if Image3.Picture........
if Image15.Picture.Graphic= nil then Image15.Picture.Assign(ViewImage.Picture);


 
McSimm ©   (2006-02-21 23:41) [1]

for i:=0 to ComponentCount-1 do
 if (Components[i] is TImage) then
 begin
......
 end



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

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

Наверх




Память: 0.46 MB
Время: 0.029 c
3-1137581245
люсик
2006-01-18 13:47
2006.03.12
базы данных


15-1140314092
Жду ответа
2006-02-19 04:54
2006.03.12
База или файл?


6-1132919309
Dmitry_177
2005-11-25 14:48
2006.03.12
RasConnectionNotification, определение дисконнекта


2-1141008211
Adios
2006-02-27 05:43
2006.03.12
BitButon


2-1140541541
Sower
2006-02-21 20:05
2006.03.12
Байты с битами