Code: Select all
gflGetDefaultSaveParams(lp);
lp.FormatIndex:=gflGetFormatIndexByName(Pchar('Tiff')); //Types of actual and formal var parameters must be identical
e:=gflSaveBitmap(PChar('test.tiff'),gfl_bmp,lp);
Moderators: XnTriq, helmut, xnview
Code: Select all
gflGetDefaultSaveParams(lp);
lp.FormatIndex:=gflGetFormatIndexByName(Pchar('Tiff')); //Types of actual and formal var parameters must be identical
e:=gflSaveBitmap(PChar('test.tiff'),gfl_bmp,lp);
Which error?Anonymous wrote:When i compile this piece of code, it raises an error:Code: Select all
gflGetDefaultSaveParams(lp); lp.FormatIndex:=gflGetFormatIndexByName(Pchar('Tiff')); //Types of actual and formal var parameters must be identical e:=gflSaveBitmap(PChar('test.tiff'),gfl_bmp,lp);
Code: Select all
var
gfl_bmp: : PGFL_BITMAP;
sp: TGFL_SAVE_PARAMS;
Don't forget the ^e := gflSaveBitmap(PChar('test.tiff'), gfl_bmp^, sp);
Sorry i don't understand. Where?Anonymous wrote:if you havethen you must doCode: Select all
var gfl_bmp: : PGFL_BITMAP; sp: TGFL_SAVE_PARAMS;
Don't forget the ^e := gflSaveBitmap(PChar('test.tiff'), gfl_bmp^, sp);
Dimitris
The original question was:Sorry i don't understand. Where?
Code: Select all
e := gflSaveBitmap(PChar('test.tiff'), gfl_bmp, sp);
Code: Select all
e := gflSaveBitmap(PChar('test.tiff'), gfl_bmp^, sp);