Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- procedure TForm1.Button1Click(Sender: TObject);
- var
- BMP: TBitmap;
- PNG: TPngImage;
- begin
- PNG := TPngImage.Create;
- try
- // load PNG from somewhere
- BMP := TBitmap.Create;
- try
- BMP.Assign(PNG);
- // here's your transparent bitmap
- finally
- BMP.Free;
- end;
- finally
- PNG.Free;
- end;
- end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement