Previous Topic

Next Topic

Book Contents

Book Index

ProcessImage

Description:

ProcessImage will let you process the image without importing or attaching the image to Notes at all. This makes it possible to do whatever you want to do with the result.

Declaration:

Declare Function ProcessImage Lib "VCII2LN.DLL" (_
Byval pstrInputFilename As String, _
Byval pstrOutputFilename As String, _
Byval pstrImportOptions As String) As Long

Parameters:

Param

Description

pstrInputFilename

The full filename of the image to process.

Starting from version 1.4 of II2LN you can also specify any http:// or file:// URL in this parameter

pstrOutputFilename

The output filename after the process. Note that II2LN by default will convert the image to JPG (or GIF if the image is originally a GIF). If you want to control the output type, use the OutputFormat Import Option

pstrImportOptions

Optional import options to control how the image is processed before it's imported. See Notes below for a list of import optiopns that won't be processed in ProcessImage

Returns:

Same return codes as ImportImage.


Usage:

lRc = ProcessImage("c:\temp\Input file.bmp","c:\temp\Output file.jpg", strImportOptions)

The call above will process the input file according to the specified import options and save the result as specified in parameter 2

Notes:

This function disables a list of import options, due to the fact that we don't work with a Notes document in a database. The disabled import options are;

AttachOriginalFile
AttachPreviewFile
ExtractEXIFToField
ExtractIPTCToField
ExtractImageVariablesToField
ProcessTimeField
ReplaceWithVariable
SetLogFilename
SetLogLevel
UseImageResourceDatabase

Introduced in version:

1.5.0.0

See Also

Functions

Identification functions

ImportImage

ImportImageAsResource

AttachImage

GetImageDimension

GetImageFromClipboard

GetTIFFFrameCount

GuessImageFormat

GuessImageFormatStrict