Herror ::set_part_style (
    const HTuple &WindowHandle,
    const HTuple &Style
)
void HWindow::SetPartStyle (
    const HTuple &Style
) const

Define an interpolation method for grayvalue output.

::set_part_style defines the interpolation method to zoom an image part which is displayed in the window. Interpolation takes place, if the output window has different size than the image to display (e.g. after a call to ::set_part or a window resize). Three modes are supported:

  0   no interpolation (low quality, very fast).

  1   unweighted interpolation (medium quality and run time)

  2   weighted interpolation (high quality, slow)
The current value can be queried with ::get_part_style.


Parameters

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

Style (input_control)
integer -> HTuple.long
Interpolation method for image output: 0 (fast, low quality) to 2 (slow, high quality).
Default value: 0
List of values: 0, 1, 2


Result

::set_part_style returns H_MSG_TRUE if the parameter is correct and the window is valid. Otherwise an exception handling is raised.


Possible Predecessors

::get_part_style


Possible Successors

::set_part, ::disp_image, ::disp_region


Alternatives

::affine_trans_image


See also

::get_part_style, ::set_part, ::disp_image, ::disp_color


Module

System



Copyright © 1996-2002 MVTec Software GmbH