ITcVnBitmapExport

Interface for exporting an image as a Windows Bitmap (BMP).

Inheritance Hierarchy

ITcUnknown
    ITcVnBitmapExport

ITcVnBitmapExport 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.

GetBitmapSize

ITcVnBitmapExport

Gets size of the image if it is converted to a Windows Bitmap (BMP).

GetBitmapImage

ITcVnBitmapExport

Export the image as a Windows Bitmap (BMP) into a given buffer.

Weiterführende Informationen

Ein Bitmap kann per Definition nur 8 Bit (für 1-Kanal Bilder) oder 24 Bit (für 3- und 4-Kanal Bilder) haben. Daher werden 16-Bit Bilder sowie Bilder mit Element-Typ REAL oder LREAL für den Bitmap-Export konvertiert. Bei 16-Bit Bildern wird der Wertebereich einfach auf 8 Bit herunterskaliert (0 entspricht 0 und 255 entspricht 65.280). Bei (L)REAL-Bildern wird der Wertebereich [-1, +1] auf [-127, +127] skaliert und als signed Integer übertragen. Werte außerhalb dieser Grenzen werden dabei als -1 bzw. +1 interpretiert.

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