mirror of
https://github.com/moparisthebest/Simba
synced 2025-02-07 10:40:19 -05:00
Some documentation changes.
This commit is contained in:
parent
0e73c91ecc
commit
2514e792cf
@ -3,5 +3,5 @@
|
|||||||
Colour Conversions
|
Colour Conversions
|
||||||
==================
|
==================
|
||||||
|
|
||||||
|
Please refer to http://wizzup.org/simbafpcdoc/colour_conv/index.html for now.
|
||||||
|
|
||||||
|
47
Doc/sphinx/scriptref/ocr.rst
Normal file
47
Doc/sphinx/scriptref/ocr.rst
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
|
||||||
|
.. _scriptref_ocr:
|
||||||
|
|
||||||
|
OCR
|
||||||
|
==============================
|
||||||
|
Simba has OCR functions (Optical Text Recognition); these are used to *read* text from an image.
|
||||||
|
|
||||||
|
It also has a wide variation of text *finding* functions. Both will be covered in
|
||||||
|
this article.
|
||||||
|
|
||||||
|
|
||||||
|
Fonts
|
||||||
|
-----
|
||||||
|
|
||||||
|
Fonts are an essential part of the text finding and identifying.
|
||||||
|
Now follows a brief explanation of the Font related functions in Simba.
|
||||||
|
|
||||||
|
LoadSystemFont
|
||||||
|
~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
.. code-block:: pascal
|
||||||
|
|
||||||
|
function LoadSystemFont(const SysFont: TFont; const FontName: string):
|
||||||
|
boolean;
|
||||||
|
|
||||||
|
This font loads a previously created Font with the name specified by
|
||||||
|
*FontName*.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
.. code-block:: pascal
|
||||||
|
|
||||||
|
program new;
|
||||||
|
var
|
||||||
|
Font : TFont;
|
||||||
|
begin
|
||||||
|
Font := TFont.Create;
|
||||||
|
Font.Name := 'Courier New';
|
||||||
|
Font.Size := 10;
|
||||||
|
Font.Style := [];
|
||||||
|
LoadSystemFont(Font,'test');
|
||||||
|
DisplayDebugImgWindow(0,0);
|
||||||
|
DisplayDebugImgWindow(150,50);
|
||||||
|
DrawBitmapDebugImg(BitmapFromText('BMP[0] has not been freed','test'));
|
||||||
|
Font.free;
|
||||||
|
end.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user