HALCON Reference Manual 10.0.2
Table of Contents / Graphics / Window ClassesClassesClasses | | | Operators

get_window_pointer3get_window_pointer3get_window_pointer3GetWindowPointer3GetWindowPointer3 (Operator)

Name

get_window_pointer3get_window_pointer3get_window_pointer3GetWindowPointer3GetWindowPointer3 — Access to a window's pixel data.

Signature

get_window_pointer3( : : WindowHandle : ImageRed, ImageGreen, ImageBlue, Width, Height)

Herror get_window_pointer3(const Hlong WindowHandle, Hlong* ImageRed, Hlong* ImageGreen, Hlong* ImageBlue, Hlong* Width, Hlong* Height)

Herror T_get_window_pointer3(const Htuple WindowHandle, Htuple* ImageRed, Htuple* ImageGreen, Htuple* ImageBlue, Htuple* Width, Htuple* Height)

Herror get_window_pointer3(const HTuple& WindowHandle, Hlong* ImageRed, Hlong* ImageGreen, Hlong* ImageBlue, Hlong* Width, Hlong* Height)

Hlong HWindow::GetWindowPointer3(HTuple* ImageGreen, HTuple* ImageBlue, HTuple* Width, HTuple* Height) const

void HOperatorSetX.GetWindowPointer3(
[in] VARIANT WindowHandle, [out] VARIANT* ImageRed, [out] VARIANT* ImageGreen, [out] VARIANT* ImageBlue, [out] VARIANT* Width, [out] VARIANT* Height)

Hlong HWindowX.GetWindowPointer3(
[out] Hlong* ImageGreen, [out] Hlong* ImageBlue, [out] Hlong* Width, [out] Hlong* Height)

static void HOperatorSet.GetWindowPointer3(HTuple windowHandle, out HTuple imageRed, out HTuple imageGreen, out HTuple imageBlue, out HTuple width, out HTuple height)

void HWindow.GetWindowPointer3(out int imageRed, out int imageGreen, out int imageBlue, out int width, out int height)

Description

get_window_pointer3get_window_pointer3get_window_pointer3GetWindowPointer3GetWindowPointer3 enables (in some window systems) the direct access to the bitmap. Result values are the three pointers on the color extracts of a 24-bit window (ImageRedImageRedImageRedImageRedimageRed, ImageGreenImageGreenImageGreenImageGreenimageGreen, ImageBlueImageBlueImageBlueImageBlueimageBlue), as well as the window size (WidthWidthWidthWidthwidth, HeightHeightHeightHeightheight). In the language C the type of the image points is unsigned char.

Attention

get_window_pointer3get_window_pointer3get_window_pointer3GetWindowPointer3GetWindowPointer3 is usable only for window type 'pixmap'.

Parallelization

Parameters

WindowHandleWindowHandleWindowHandleWindowHandlewindowHandle (input_control)  window HWindow, HTupleHTupleHWindowX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong)

Window identifier.

ImageRedImageRedImageRedImageRedimageRed (output_control)  integer HTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong)

Pointer on red channel of pixel data.

ImageGreenImageGreenImageGreenImageGreenimageGreen (output_control)  integer HTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong)

Pointer on green channel of pixel data.

ImageBlueImageBlueImageBlueImageBlueimageBlue (output_control)  integer HTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong)

Pointer on blue channel of pixel data.

WidthWidthWidthWidthwidth (output_control)  extent.x HTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong)

Length of an image line.

HeightHeightHeightHeightheight (output_control)  extent.y HTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong)

Number of image lines.

Result

If a window of type 'pixmap' exists and it is valid get_window_pointer3get_window_pointer3get_window_pointer3GetWindowPointer3GetWindowPointer3 returns 2 (H_MSG_TRUE). If necessary an exception is raised.

Possible Predecessors

open_windowopen_windowopen_windowOpenWindowOpenWindow, open_textwindowopen_textwindowopen_textwindowOpenTextwindowOpenTextwindow

See also

open_windowopen_windowopen_windowOpenWindowOpenWindow, set_window_typeset_window_typeset_window_typeSetWindowTypeSetWindowType

Module

Foundation


Table of Contents / Graphics / Window ClassesClassesClasses | | | Operators
HALCON Reference Manual 10.0.2 Copyright © 1996-2011 MVTec Software GmbH