bgrabitmap / bgracontrols

🆗 BGRA Controls is a set of graphical UI elements that you can use with Lazarus LCL applications.
https://bgrabitmap.github.io/bgracontrols/
182 stars 30 forks source link

unitbgraimagemanipulationdemo.pas does not compile #164

Closed KoBraSoft closed 7 months ago

KoBraSoft commented 7 months ago

I am trying to compile unitbgraimagemanipulationdemo.pas from dev-bgracontrols and I get this error messages:

unitbgraimagemanipulationdemo.pas(574,78) Error: Incompatible type for arg no. 1: Got "TRect", expected "TRectF"
bgraimagemanipulation.pas(3303,33) Hint: Found declaration: addCropArea(TRectF;TResolutionUnit=`0`;LongInt=`-1`):TCropArea;
unitbgraimagemanipulationdemo.pas(575,72) Error: Incompatible type for arg no. 1: Got "TRect", expected "TRectF"
bgraimagemanipulation.pas(3303,33) Hint: Found declaration: addCropArea(TRectF;TResolutionUnit=`0`;LongInt=`-1`):TCropArea;
lainz commented 7 months ago

@maxm74 hi, please check if it compiles with current release of FPC and Lazarus, not just in trunk...

maxm74 commented 7 months ago

simply used RectF() intestead of Rect()

lainz commented 7 months ago

Thankyou =)