Name
set_partT_set_partSetPartSetPart — Modify the displayed image part.
void SetPart(const HTuple& WindowHandle, const HTuple& Row1, const HTuple& Column1, const HTuple& Row2, const HTuple& Column2)
void HWindow::SetPart(const HTuple& Row1, const HTuple& Column1, const HTuple& Row2, const HTuple& Column2) const
void HWindow::SetPart(Hlong Row1, Hlong Column1, Hlong Row2, Hlong Column2) const
static void HOperatorSet.SetPart(HTuple windowHandle, HTuple row1, HTuple column1, HTuple row2, HTuple column2)
void HWindow.SetPart(HTuple row1, HTuple column1, HTuple row2, HTuple column2)
void HWindow.SetPart(int row1, int column1, int row2, int column2)
set_partset_partSetPartSetPartSetPart modifies the image part that is displayed in
the window. (Row1Row1Row1Row1row1,Column1Column1Column1Column1column1) denotes the
upper left corner and (Row2Row2Row2Row2row2,Column2Column2Column2Column2column2) the lower
right corner of the image part to display. The changed values are
used by gray value output operators (disp_imagedisp_imageDispImageDispImageDispImage,
disp_colordisp_colorDispColorDispColorDispColor) as well as region output operators
(disp_regiondisp_regionDispRegionDispRegionDispRegion).
If only part of an image is displayed, it will be zoomed to full
window size. The zooming interpolation method can be set with
set_part_styleset_part_styleSetPartStyleSetPartStyleSetPartStyle. get_partget_partGetPartGetPartGetPart returns the
values of the image part to display.
Beside setting the image part directly, the following special modes are
supported:
- Row1Row1Row1Row1row1 = Column1Column1Column1Column1column1 =
Row2Row2Row2Row2row2 = Column2Column2Column2Column2column2 = -1:
-
The window size is chosen as the image part, i.e. no
zooming of the image will be performed.
- Row1Row1Row1Row1row1, Column1Column1Column1Column1column1 > -1 and
Row2Row2Row2Row2row2 = Column2Column2Column2Column2column2 = -1:
-
The size of the last displayed image (in this window) is chosen
as the image part, i.e. the image can completely be displayed in
the image. For this the image will be zoomed if necessary.
- Row1Row1Row1Row1row1 = Column1Column1Column1Column1column1 = 0 and
Row2Row2Row2Row2row2 = Column2Column2Column2Column2column2 = -2:
-
The size of the last displayed image (in this window) is used
to adapt the image part such that the image fits completely into the
window, preserving the aspect ratio of the image. For this the image
will be zoomed if necessary.
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
Row of the upper left corner of the
chosen image part.
Default value: 0
Column of the upper left corner of the
chosen image part.
Default value: 0
Row of the lower right corner of the
chosen image part.
Default value: -1
Restriction: Row2 >= Row1 || Row2 == -1 || Row1 == 0 && Row2 == -2
Column of the lower right corner of the
chosen image part.
Default value: -1
Restriction: Column2 >= Column1 || Column2 == -1 || Column1 == 0 && Column2 == -2
get_system('width',Width)
get_system('height',Height)
set_part(WindowHandle,0,0,Height-1,Width-1)
disp_image(Image,WindowHandle)
draw_rectangle1(WindowHandle,Row1,Column1,Row2,Column2)
set_part(WindowHandle,Row1,Column1,Row2,Column2)
disp_image(Image,WindowHandle)
get_system("width",Width) ;
get_system("height",Height) ;
set_part(WindowHandle,0,0,Height-1,Width-1) ;
disp_image(Image,WindowHandle) ;
draw_rectangle1(WindowHandle,&Row1,&Column1,&Row2,&Column2) ;
set_part(WindowHandle,Row1,Column1,Row2,Column2) ;
disp_image(Image,WindowHandle) ;
get_system('width',Width)
get_system('height',Height)
set_part(WindowHandle,0,0,Height-1,Width-1)
disp_image(Image,WindowHandle)
draw_rectangle1(WindowHandle,Row1,Column1,Row2,Column2)
set_part(WindowHandle,Row1,Column1,Row2,Column2)
disp_image(Image,WindowHandle)
get_system('width',Width)
get_system('height',Height)
set_part(WindowHandle,0,0,Height-1,Width-1)
disp_image(Image,WindowHandle)
draw_rectangle1(WindowHandle,Row1,Column1,Row2,Column2)
set_part(WindowHandle,Row1,Column1,Row2,Column2)
disp_image(Image,WindowHandle)
get_system('width',Width)
get_system('height',Height)
set_part(WindowHandle,0,0,Height-1,Width-1)
disp_image(Image,WindowHandle)
draw_rectangle1(WindowHandle,Row1,Column1,Row2,Column2)
set_part(WindowHandle,Row1,Column1,Row2,Column2)
disp_image(Image,WindowHandle)
set_partset_partSetPartSetPartSetPart returns 2 (H_MSG_TRUE) if the window is valid.
Otherwise an exception is raised.
get_partget_partGetPartGetPartGetPart
set_part_styleset_part_styleSetPartStyleSetPartStyleSetPartStyle,
disp_imagedisp_imageDispImageDispImageDispImage,
disp_regiondisp_regionDispRegionDispRegionDispRegion
affine_trans_imageaffine_trans_imageAffineTransImageAffineTransImageAffineTransImage
get_partget_partGetPartGetPartGetPart,
set_part_styleset_part_styleSetPartStyleSetPartStyleSetPartStyle,
disp_regiondisp_regionDispRegionDispRegionDispRegion,
disp_imagedisp_imageDispImageDispImageDispImage,
disp_colordisp_colorDispColorDispColorDispColor
Foundation