ITcVnImage

Basic interface for images.

Inheritance Hierarchy

ITcUnknown
    ITcVnImageBase
        ITcVnImage

ITcVnImage 1: Methods

Name

Origin

Description

TcAddRef

ITcUnknown

Increments the reference counter.

TcQueryInterface

ITcUnknown

Get a reference to an implemented interface.

TcRelease

ITcUnknown

Decrements the reference counter.

GetImageData

ITcVnImageBase

Gets the data interface (Do not explicitly free the pointer in there!).

GetImageSize

ITcVnImageBase

Gets the image size.

GetWidth

ITcVnImageBase

Gets the image width (alternatively use F_VN_GetImageWidth).

GetHeight

ITcVnImageBase

Gets the image height (alternatively use F_VN_GetImageHeight).

GetXPadding

ITcVnImageBase

Gets the horizontal padding.

GetYPadding

ITcVnImageBase

Gets the vertical padding.

GetPixelFormat

ITcVnImageBase

Gets the pixel format (alternatively use F_VN_GetPixelFormat).

GetImageInfo

ITcVnImageBase

Gets a struct containing all common meta infos of the image. This basically encompasses all meta information accessible via this interface. (Alternatively use F_VN_GetImageInfo.)

Init

ITcVnImage

Initialize an image with an ITcVnImageBase interface.

GetRowPointer

ITcVnImage

Gets a pointer to a specific row of an image.

ReleaseRowPointer

ITcVnImage

Release the pointer to a specific row of an image.

Weiterführende Informationen

Das Interface ITcVnImage dient zur Handhabung von Bildern. Es stellt Methoden zum Erlangen von Meta-Informationen wie Bildgröße, Anzahl der Kanäle, Pixeltyp, etc. und zum Zugriff auf die rohen Bilddaten zur Verfügung.

Dieses Interface ist nicht zur Bildanzeige über ADS (z. B. mit dem ADS Image Watch) geeignet. Um ein Bild über ADS anzuzeigen wird das Interface ITcVnDisplayableImage benötigt. Eine Konvertierung kann mit folgenden Funktionen vorgenommen werden:

Verwandte Funktionen

System Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT V3.1. 4024.44 or later

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

Tc3_Vision