Visual Basic (Declaration) | |
---|---|
Public Sub StartOverlay( _ ByVal callback As CodecsOverlayCallback, _ ByVal mode As CodecsOverlayCallbackMode _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public void StartOverlay( CodecsOverlayCallback callback, CodecsOverlayCallbackMode mode ) |
C++/CLI | |
---|---|
public: void StartOverlay( CodecsOverlayCallback^ callback, CodecsOverlayCallbackMode mode ) |
Parameters
- callback
- The method which should be called when an overlay is detected. Use a null reference (Nothing in Visual Basic) to indicate that LEADTOOLS should handle overlays automatically.
- mode
- Indicates when should this method be called. See CodecsOverlayCallbackMode for possible values.
This example will read a PTOKA file and overlays a TIF file on it
Visual Basic | Copy Code |
---|---|
Private Sub PtokaOverlayExample(ByVal ptokaFileName As String, ByVal ptokaFilesPath As String) |
C# | Copy Code |
---|---|
void PtokaOverlayExample(string ptokaFileName, string ptokaFilesPath) |
Currently, only PTOCA files are known to use such overlays.
PTOCA files contain file references (ie filenames) to external files that contain overlay bitmaps. (These files are typically in IOCA format)
These external overlay files will be resized and placed on the current page according to the information from the PTOCA files. By default, LEADTOOLS will load these external overlay files from disk. You should override this behaviour if you load files that are not stored locally (eg: on a remote storage or in a database).
To load overlays stored on other storage, you have to pass your overlay callback to this method and load the overlays in your overlay callback.
The overlay callback will be used until StopOverlay is called.
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family