Image: Conversion: Image Scale
Rescale image
It is not accessible from script. This feature is for OriginPro only.
Please refer to the page for additional option switches when accessing the x-function from script
Image |
Specifies the input image to be manipulated. The default input is the active image. |
Available In |
Specifies the area to apply the new coordinates
|
Left |
Specifies the leftmost X coordinate value in the available area |
Top |
Specifies the topmost Y coordinate value in the available area |
Right |
Specifies the rightmost X coordinate value in the available area |
Bottom |
Specifies the bottommost Y coordinate value in the available area |
This X-Function applies the new XY coordinate scales either on full image or a selected rectangle area to rescale the image.
If the available area selected is Full Image, given the specified Left and Right values, the minimum X coordinate of the image will be set to Left and the maximum X coordinate will be set to Right. Other X coordinates are reset so that they are linearly spaced between Left and Right. Similarly, given the specified Top and Bottom values, the minimum Y coordinate of the image will be set to Top and the maximum Y coordinate will be set to Bottom. Other Y coordinates are reset so that they are linearly spaced between Top and Bottom.
If the available area is Rectangle, user can select the area by moving and resizing the rectangle object on the image. Given the specified Left, Top, Right and Bottom coordinate values, the XY coordinates of the left, top, right and bottom of the selected area will be reset to these values and other coordinates will also be reset accordingly to keep the coordinates in the selected area linearly spaced. According to the new XY coordinates of the selected area, the XY coordinates of other area on the image will be rearranged. As a result, the input image is rescaled.
The following example shows how to use this X-Function to rescale the image by specifying the new XY coordinate scales onto the selected rectangle area:
![]() |
![]() |
|
|
Note: OriginPro includes the ability to automatically recalculate the analysis results of the Reset XY coordinate scales operation any time you change the parameters or update your source data. In addition, the settings for this analysis routine can be saved to an analysis theme for use later with similar data.