Saiyine
Punto Com

Leer y escribir JPGs y convertirlos a bitmaps

0000-00-00 00:00:00

function LeerJPG(n : string) : TBitmap;
Var
jpeg: TJPEGImage;
Begin
        jpeg:= TJPEGImage.Create;
        try
        jpeg.LoadFromFile(n);
        result:= TBitmap.Create;
        try
        result.Assign( jpeg );
        finally
end;
finally
jpeg.free
end;
end;

procedure GrabarJPG(n : string; d : TBitmap);
Var
jpeg: TJPEGImage;
Begin
        jpeg:= TJPEGImage.Create;
        jpeg.Assign( d );
        jpeg.savetofile(n);
        jpeg.free
end;

Rollos antiguos

0000-00-00 00:00:00 - Leer de un fichero byte a byte simulando un read, pero muchisimo mas rapido.

0000-00-00 00:00:00 - Largo de una cadena en pixels sabiendo la fuente usada para imprimirla.

2006-02-21 20:07:00 - Justificar el texto de un memo, listbox, etc.

0000-00-00 00:00:00 - Filtrar entrada en los edit.

0000-00-00 00:00:00 - Hacer un mismo codigo para varios controles.

Saiyine

Selfie of meHi! Welcome to Saiyine Punto Com where I talk about anything that goes through my mind!

Puedo prometer y prometo que a la mayor brevedad aquí irá un menú o algo asín.