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

Убрать ФОН   Найти похожие ветки 

 
Viper ©   (2004-10-16 20:51) [0]

Ситуация такая: нужно использовать рисунок с прозрачным фоном,
как это сделать?


 
Fenik   (2004-10-16 21:02) [1]

TBitmap: Transparent, TransparentColor - F1


 
Viper ©   (2004-10-16 21:05) [2]

можешь начеркать какой нибуть примерчик


 
Fenik   (2004-10-16 21:08) [3]

Он в справке есть.

Canvas, Transparent, TransparentMode, TransparentColor example

procedure TForm1.Button1Click(Sender: TObject);
var
 Bitmap : TBitMap;
begin
 Bitmap := TBitmap.Create;
 try
   with Bitmap do begin
     LoadFromFile("MyBitmap.bmp");
     Transparent := True;
     TransParentColor := BitMap.Canvas.Brush.Color;
     Form1.Canvas.Draw(0,0,BitMap);
     TransparentMode := tmAuto;
     Form1.Canvas.Draw(50,50,BitMap);
   end;
 finally
   Bitmap.Free;
 end;
end;



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

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



Память: 0.45 MB
Время: 0.031 c
4-1101586279
TankMan
2004-11-27 23:11
2005.01.23
Кто-нибудь может дать примерчик в котором можно было-бы


14-1104862888
Andrewp
2005-01-04 21:21
2005.01.23
Тупой препад!


14-1105004976
syte_ser78
2005-01-06 12:49
2005.01.23
try except


4-1101807461
mariya
2004-11-30 12:37
2005.01.23
как свернуть все окна кроме определенного


14-1104910059
_student
2005-01-05 10:27
2005.01.23
Срочно надо инфу с http://delphiworld.ru/




   Наверх