Ver Mensaje Individual
  #8  
Antiguo 31-08-2007
Avatar de mightydragonlor
[mightydragonlor] mightydragonlor is offline
Miembro Premium
 
Registrado: feb 2007
Ubicación: Medellín-Colombia
Posts: 587
Reputación: 20
mightydragonlor Va por buen camino
De esta manera cambias el formato y la profundidad del la imagen a BMP, no altera el tamaño original.

Código Delphi [-]
function ToBMP(g: TGraphic): TBitMap;
begin
  try
    Result:=TBitmap.Create;
    Result.Width:= g.Width;
    Result.Height:= g.Height; 
    Result.Palette:=g.palette;
    Result.PixelFormat:=pf15bit;
    Result.Canvas.Draw(0,0,g);
  except
    Result:=nil;
  end;
end;
Responder Con Cita