GFLRotate
Posted: Wed Nov 26, 2008 1:46 pm
Hi,
I am using Delphi . I have a problem with GFLRotate.
I am using Delphi . I have a problem with GFLRotate.
Code: Select all
procedure TImageViewForm.vb1Click(Sender: TObject);
var
InformationFichier: TGFL_File_Information;
LoadParam : TGFL_Load_Params;
// spr : TGFL_SAVE_PARAMS;
Erreur : GFL_Error;
GFLImage : PGFL_Bitmap;
gfl_bmp_dst: PPGFL_BITMAP;
Rotation :integer;
filename: string;
Pgfl_colorRotar: TGFL_COLOR;
begin
OpenDialog.Filter := GflFilterString;
if not OpenDialog.Execute then
exit;
filename := OpenDialog.Filename;
Pgfl_colorRotar.Red := 0;
Pgfl_colorRotar.Green := 0;
Pgfl_colorRotar.Blue := 0;
Pgfl_ColorRotar.Alpha := 0;
Rotation := Rotation +90;
if Rotation > 270 then Rotation := 0;
gflGetDefaultLoadParams(LoadParam);
LoadParam.Flags := GFL_LOAD_METADATA;
Erreur := gflLoadBitmap(PChar(filename), GFLImage, LoadParam, InformationFichier);
GFLRotate(GFLImage,nil, 180 ,Pgfl_colorRotar);
// f := gflSaveBitmap(PChar(filename),GFLImage, LoadParam );
end;