Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
ImageTools[Preview] - preview an image
Calling Sequence
Preview( img, MaxH, MaxW, opts )
Parameters
img
-
Image; the image to preview
MaxH
(optional) posint; desired maximum height of the preview image
MaxW
(optional) posint; desired maximum width of the preview image
opts
(optional) equation(s) of the form option = value; specify options for the Preview command
Description
The Preview command generates a plot of an image and displays it in the worksheet.
The img parameter is the image to be displayed.
The optional parameters MaxH and MaxW are the maximum height and width, respectively, to which the preview image is scaled. The units are pixels if the output option is image; otherwise they are characters. If omitted, suitable defaults are used.
The image is reduced to thumbnail size for previewing, and is displayed with axes corresponding to the pixel coordinates of the image. This is useful in determining where to crop an image.
Options
chars = string
Specifies the characters to use when the output = text option is selected. The characters should be ordered from darkest to lightest, with the darkest listed first. The default is "@Oo*+=~- ".
method = bspline or nearest
Specifies the mode used to scale the image. See Scale. The default is bspline.
output = image or text
Specifies whether the output is an image or a text representation of the image. If the latter, the characters in the chars option represent the shades of gray in the image. The default is image, unless interface(plotdevice) is char.
Examples
***** ***** ***** ***** ***** ***** ***** ***** ***** ***** ***** ***** ***** ***** ***** ***** ***** ***** ***** ***** ***** ***** ***** *****
See Also
ImageTools, ImageTools[View], ImageTools[Write]
Download Help Document