If no format is specified, it is derived from the filename extension.įmt should be one of the valid formats as returned by imageFormats() If neither hotkey nor autosave are True, images can only be saved byĮxecuting the saveNext() function from a script. If autosave is True, a new image will be saved on each execution of If hotkey is True, a new image will be saved by hitting the ‘S’ key. If grab is True, the external ‘import’ program is used to grab the If window is False, only the current canvas viewport is saved. If window and border are True, the window decorations will be included. If window is True, the full pyFormex window is saved. Otherwise a numeric part ‘-000’ will be added to the filename. Numeric part, subsequent images will be numbered continuing from this If the supplied filename (after removing the extension) has a trailing In multisave mode, each call to saveNext() will save an image to theįilenames are generated by incrementing a numeric part of the name. Implicitely be ended before starting the second. Two subsequent calls starting multisave mode without an intermediate call Without a filename, multisave mode is turned off. With a filename and multi=True, multisave mode is started. With a filename and multi=False (default), the current viewport rendering Saves an image to file or Starts/stops multisave mode. save ( filename=None, window=False, multi=False, hotkey=True, autosave=False, border=False, grab=False, format=None, quality=-1, size=None, verbose=False, alpha=True, rootcrop=None ) ¶ Save a rectangular part of the screen to a an image file.Ĭrop: (x,y,w,h) gui.image. save_window_rect ( filename, format, quality=-1, window='root', crop=None ) ¶ In all cases, the GUI and current canvas are raised. If crop=’canvas’, windowname is set to main pyFormex window If crop is given, the specified rectangle is cropped. If a window is specified, the named window is saved. This function needs a filename AND format. save_window ( filename, format, quality=-1, windowname=None, crop=None ) ¶ Save the rendering on canvas as an image file.Ĭanvas specifies the qtcanvas rendering window.įmt is the image file format. save_canvas ( canvas, fn, fmt=None, quality=-1, size=None, alpha=False ) ¶ If the supplied extension is empty, the default format ‘png’ is returned. The format is equal to the extension characters in lower case. The extension may or may not have an initial dot and may be in upper or imageFormatFromExt ( ext ) ¶ĭetermine the image format from an extension. Returns the image format, or None if it is not OK. checkImageFormat ( fmt, verbose=True ) ¶Ĭhecks image format if verbose, warn if it is not. mode: ‘w’ or ‘r’, for formats that can be written or read.The available image formats are derived from the installed software. Image formats are lower case strings as ‘png’, ‘gif’, ‘ppm’, ‘eps’, etc. Return a list of the valid image formats. Functions defined in module gui.image ¶ gui.image. If you have any problems with the registration process or your account login, please contact us.30.1. Registration is fast, simple and absolutely free so please, join our community today! By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. If you are looking for information about Qt related issue - register and post your question. Over 90 percent of questions asked here gets answered. Qt Centre is a community site devoted to programming in C++ using the Qt framework. Select the forum that you want to visit from the selection below. Before you can post: click the register link above to proceed.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |