Posted by: 007
I've started the library some time ago (with circular help), is in bgracontrols package, but left it since I will not use it as is, but if you're interested check it out.
bgracontrols\test\test_bgrabitmap_library test project
bgracontrols\bgra_pascalscript_library the library is based on the bgrabitmap pascal script implementation (that of course is limited to the declared functions in BGRAPascalScript.pas), because that is the name I choose...
Ha, ok, you did it like that => using Pascal Script.
I have to study it because i do that way =>
library BGRABitmap;
uses
BGRABitmap
,BGRABitmapTypes;
function getBlue(AColor: TBGRAColor): byte; cdecl;
begin
Result := getBlue(aColor);
end;
....
exports
getBlue name 'getblue',
...
begin
end.
And also I must ask you If you know if you can get it working with visual studio and c# for example...
I am not sure to understand... but if you want to know if a fpc library could be used with other languages =>
Of course fpc libraries work with visual studio programs, Python programs, even Java programs (with some modifs).
All compiler/language that can deal with native libraries can deal with fpc libraries.
Fre;D