CopyImageRegionToRegion

Copy an image region into another image region.

Syntax

Definition:

HRESULT CopyImageRegionToRegion(
    HRESULT     hrPrev,
    ITcVnImage* ipSrcImage,
    ULONG       nXSrc,
    ULONG       nYSrc,
    ULONG       nWidth,
    ULONG       nHeight,
    ITcVnImage* ipDestImage,
    ULONG       nXDest,
    ULONG       nYDest
)

Parameters

Name

Type

Description

hrPrev

HRESULT

HRESULT indicating the result of previous operations (If SUCCEEDED(hrPrev) equals false, no operation is executed.)

ipSrcImage

ITcVnImage*

Source image

nXSrc

ULONG

Left boundary in ipSrcImage (inclusive 0-based index)

nYSrc

ULONG

Upper boundary in ipSrcImage (inclusive 0-based index)

nWidth

ULONG

ROI width

nHeight

ULONG

ROI height

ipDestImage

ITcVnImage*

Destination image (same type as ipSrcImage)

nXDest

ULONG

Left boundary in ipDestImage (inclusive 0-based index)

nYDest

ULONG

Upper boundary in ipDestImage (inclusive 0-based index)

CopyImageRegionToRegion 1: Return value

HRESULT

Required License

TC3 Vision Base

System Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT V3.1.4024.54 or later

PC or CX (x64) with PL50, e.g. Intel 4-core Atom CPU

Tc3_Vision