Incompatible types: 'PPGFL_BITMAP' and 'PGFL_BITMAP
Posted: Tue Dec 02, 2008 8:39 am
Hi tranparent code
I have error message
I have error message
Code: Select all
i: integer;
filename1, filename: string;
finfo,fgh : TGFL_FILE_INFORMATION;
lp: TGFL_LOAD_PARAMS;
sp: TGFL_SAVE_PARAMS;
gfl_bmp,logo : PGFL_BITMAP;
e, f,g,c: GFL_ERROR;
format: string;
rect: PGFL_RECT;
color: PGFL_COLOR ;
begin
OpenDialog.Filter := GflFilterString;
if not OpenDialog.Execute then
exit;
filename := OpenDialog.Filename;
if FileName <> '' then
begin
color.Red:=255;
color.Blue:=0;
color.Green:=0;
color.Alpha:=0;
gfl_bmp:= gflAllockBitmap(GFL_RGB,60,60,4,color);
color.Red:=0;
color.Blue:=255;
color.Green:=0;
color.Alpha:=255;
logo := gflAllockBitmap(GFL_RGBA,120,120,4,color);
gflGetDefaultLoadParams(lp);
lp.Flags := GFL_LOAD_ORIGINAL_COLORMODEL;
e := gflLoadBitmap(Pchar(filename), gfl_bmp, lp, finfo);
if (e <> gfl_no_error) then begin
MessageDlg('File not readable: ' + string(gflGetErrorString(e)), mtError, [mbOK], 0);
exit;
end;
g:= gflLoadBitmap(Pchar(filename), logo , lp, fgh);
if (g <> gfl_no_error) then begin
MessageDlg('File not readable: ' + string(gflGetErrorString(e)), mtError, [mbOK], 0);
exit;
end;
rect.x:=0;
rect.y:=0;
rect.w:=fgh.Width;
rect.h:=fgh.Height;
c:= gflBitblt( logo, rect, gfl_bmp , 0, 0);//error message? [DCC Error] Incompatible types: 'PPGFL_BITMAP' and 'PGFL_BITMAP'???