1
0
mirror of https://github.com/moparisthebest/Simba synced 2024-11-11 20:05:03 -05:00
Simba/trunk/Units/MMLAddon/PSInc/Wrappers/ocr.inc

26 lines
673 B
PHP
Raw Normal View History

function rs_GetUpText: String; stdcall;
begin
Result := CurrThread.Client.MOCR.GetUpTextAtEx(7, 7, true);
end;
function BitmapFromText(text, font: String): integer; stdcall;
var
bmp: TMufasaBitmap;
begin
writeln('BitmapFromText: ' + text + ' ' + font);
bmp := CurrThread.Client.MOCR.TextToFontBitmap(text, font);
Result := CurrThread.Client.MBitmaps.AddBMP(bmp);
end;
function MaskFromText(text, font: String): TMask; stdcall;
begin
Result := CurrThread.Client.MOCR.TextToMask(text,font);
end;
function TPAFromText(text, font: String): TPointArray; stdcall;
var
w,h : integer;
begin
Result := CurrThread.Client.MOCR.TextToFontTPA(text, font, w, h);
end;