Por ejemplo,
Código Delphi
[-]
...
uses JPeg;
...
procedure ConvertToBMP(IMGorigen,IMGDestino:string);
var MyJPEG : TJPEGImage;
MyBMP : TBitmap;
begin
MyJPEG := TJPEGImage.Create;
with MyJPEG do
begin
LoadFromFile(IMGorigen);
MyBMP := TBitmap.Create;
with MyBMP do
begin
Canvas.Draw(0,0,MyJPEG);
SaveToFile(IMGDestino);
Free;
end;
Free;
end;
end;
Además hechale un ojo a este truco:
http://www.clubdelphi.com/trucos/ind...47&scrollb=202
Creo que es muy claro, y bien podes modificar el tema de la escala de grises.
Saludos
__________________
Código Delphi
[-]
try
ProgramarMicro(80C52,'Intel',MnHex,True);
except
On Exception do
MicroChip.IsPresent(True);
end;