Code: Alles auswählen
TransparentMode := tmFixed;
TransparentColor := clFuchsia;
Code: Alles auswählen
TransparentMode := tmFixed;
TransparentColor := clFuchsia;
Code: Alles auswählen
Image1.Picture.Bitmap.TransparentMode := tmFixed;
Image1.Picture.Bitmap.TransparentColor := clFuchsia;
Code: Alles auswählen
constructor TSkinTrackBar.Create(...);
begin
...
with aForm do
begin
Image := TImage.Create(aForm);
with Image do
begin
with Picture.Bitmap do
begin
TransparentColor := cTrans;
TransparentMode := tmFixed;
end;
...
end;
end;
end;
procedure TSkinTrackBar.Draw;
begin
with Image.Canvas do
begin
Brush.Color := cTrans;
Pen.Color := cTrans;
Rectangle(0, 0, Image.Width, Image.Height);
// ab hier wird drübergezeichnet
// ...
end;
end;
Code: Alles auswählen
constructor TSkinTrackBar.Create(...);
begin
...
with aForm do
begin
Image := TImage.Create(aForm);
with Image do
begin
Transparent := True;
...
end;
end;
end;
procedure TSkinTrackBar.Draw;
begin
with Image.Canvas do
begin
Brush.Color := cTrans;
Pen.Color := cTrans;
Rectangle(0, 0, Image.Width, Image.Height);
// ab hier wird drübergezeichnet
// ...
// alles fertig gezeichnet
with Picture.Bitmap do
begin
TransparentColor := cTrans;
TransparentMode := tmFixed;
end;
end;
end;
Da blickt aber kaum einer durch.Nils hat geschrieben:Selbstverständlich.