Convierte casi cualquier decendiente de TGraphic a TMetafile
g puede ser un TIcon, TBitMap, TJPEGImage, etc.
Código Delphi
[-]
function ToWMF(g: TGraphic): TMetafile;
var BMP: TBitmap;
begin
try
BMP:=TBitmap.Create;
BMP:=ToBMP(g); Result:=TMetafile.Create;
Result.Assign(BMP);
Result.Transparent:=True; except
Result:=nil;
end;
end;