Microscopy Image Browser  1.233
All Classes Files Functions Variables Pages
toolbarResizingMethod.m File Reference

Function to set type of image interpolation for the visualization. More...

Functions

function  toolbarResizingMethod (hObject, eventdata, handles, options)
 Function to set type of image interpolation for the visualization. More...
 

Detailed Description

Function to set type of image interpolation for the visualization.

Function Documentation

function toolbarResizingMethod (   hObject,
  eventdata,
  handles,
  options 
)

Function to set type of image interpolation for the visualization.

When the 'options' variable is omitted the function works as a standard callback and changes the type of image interpolation: 'bicubic' or 'nearest'. However, when 'options' are specified the function sets the state of the button to the currently selected type.

Parameters
hObjecta handle of the button, handles. toolbarResizingMethod
eventdataeventdata, may be empty - ' '
handleshandles structure of im_browser.m
options[optional],
  • when 'keepcurrent' set the state of the button to the currently selected type of the interpolation: handles.preferences.resize
Required fields of handles:

Examples:

toolbarResizingMethod(handles.toolbarInterpolation, '', handles, 'keepcurrent'); // update the image interpolation button icon
toolbarResizingMethod(handles.toolbarInterpolation, '', handles); // a callback to the button press

Referenced by im_browser_getDefaultParameters(), imbrowser>toolbarResizingMethod_ClickedCallback(), and preferencesDlg>applyBtn_Callback().

Here is the caller graph for this function: