Advertisement
TLama

Untitled

Jan 27th, 2014
620
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.34 KB | None | 0 0
  1. procedure TForm1.Button1Click(Sender: TObject);
  2. var
  3.   BMP: TBitmap;
  4.   PNG: TPngImage;
  5. begin
  6.   PNG := TPngImage.Create;
  7.   try
  8.     // load PNG from somewhere
  9.     BMP := TBitmap.Create;
  10.     try
  11.       BMP.Assign(PNG);
  12.       // here's your transparent bitmap
  13.     finally
  14.       BMP.Free;
  15.     end;
  16.   finally
  17.     PNG.Free;
  18.   end;
  19. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement