Ver Mensaje Individual
  #4  
Antiguo 23-04-2008
Avatar de MaMu
MaMu MaMu is offline
Miembro
 
Registrado: abr 2006
Ubicación: Argentina
Posts: 863
Reputación: 21
MaMu Va por buen camino
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                
              //Acá es donde tenes que jugar con la escala                  
              //Width := MyJPEG.Width;                 
              //Height := MyJPEG.Height;                
              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;

Última edición por MaMu fecha: 23-04-2008 a las 06:33:32.
Responder Con Cita