Herror ::get_part (
    const HTuple &WindowHandle,
    long *Row1,
    long *Column1,
    long *Row2,
    long *Column2
)
HTuple HWindow::GetPart (
    HTuple *Column1,
    HTuple *Row2,
    HTuple *Column2
) const

Get the image part.

::get_part returns the upper left and lower right corner of the image part shown in the window. The image part can be changed with the procedure ::set_part (Default is the whole image).


Parameters

WindowHandle (input_control)
window -> HTuple.long
Window_id.

Row1 (output_control)
rectangle.origin.y -> long *
Row index of the image part's upper left corner.

Column1 (output_control)
rectangle.origin.x -> long *
Column index of the image part's upper left corner.

Row2 (output_control)
rectangle.corner.y -> long *
Row index of the image part's lower right corner.

Column2 (output_control)
rectangle.corner.x -> long *
Column index of the image part's lower right corner.


Result

::get_part returns H_MSG_TRUE if the window is valid. Otherwise an exception handling is raised.


Possible Successors

::set_part, ::disp_region, ::disp_image


See also

::set_part, ::disp_image, ::disp_region, ::disp_color


Module

System



Copyright © 1996-2002 MVTec Software GmbH