HandleAllocated indicates whether the underlying GDI object has already been created. Use HandleAllocated to determine whether the Handle property is set to an HMETAFILE value. Indicates whether the TMetafile object has acquired a handle to the underlying GDI object. Pass the handle from the Handle property of the metafile object to the function. Use Handle when calling a Windows API function that requires the handle of a metafile object. If loaded as WMF, then save as WMF.īy default, the Enhanced property is True. This property is set to match the metafile type when loaded from a stream or file. WMF has very limited capabilities storing as WMF will lose information that would be retained by EMF. WMF (Windows 3.1 Metafile, with Aldus header). If Enhanced is False, the metafile is stored as a. If Enhanced is True, the metafile is stored as an. Use Enhanced to determine how the metafile is stored on disk. Then Destroy calls the inherited Destroy. Free verifies that the TMetafile reference is not nil before it calls Destroy.ĭestroy releases the image, which frees the image and the handle when the reference count on the metafile image is zero. Instead, an application should call Free. Destroy ( ) #ĭestroys an instance of a metafile object.ĭo not call Destroy directly in an application. Set the Description string of a new metafile by calling the TMetafileCanvas CreateWithComment constructor (Delphi) or the TMetafileCanvas constructor that takes a comment (C++). To set the CreatedBy string of a new metafile, call the TMetafileCanvas CreateWithComment constructor (Delphi) or the TMetafileCanvas constructor that takes a comment (C++). Use CreatedBy to set the string to an optional name of the author or application used to create the metafile. After the image is drawn on the canvas and the canvas is destroyed, the image is ‘playable’ in the metafile object. When the metafile canvas is destroyed, it transfers the image into the metafile object provided to the metafile canvas constructor. To create a metafile image from scratch, draw the image in a metafile canvas. Then sets the Enhanced and Transparent properties to true. Create ( ) #Ĭall Create to instantiate a metafile at runtime.Ĭreate allocates memory for a metafile object, and calls the inherited Create. Use Clear to release the old metafile image, create a new image, and increment a reference count on it. The method uses current stream position, it does not change current stream position. All content below this line refers to .ĬanLoadFromStream returns True when a specified stream contains a streamed image of a specific TGraphic subclass. CanLoadFromStream ( Stream : Stream ) → Boolean # For assignment, metafiles are polymorphic with other TGraphic objects, and with TPicture. Otherwise, Assign calls the inherited method. If the metafile is nil (Delphi) or NULL (C++), Assign creates one. Indicates whether the image covers its rectangular area.ĭetermines the maximum width of the graphics object in pixels.Īssign copies the Enhanced and Palette properties of an object to the metafile. Indicate whether graphic supports partial transparency or an alpha channel. Returns the reference to the scaled drawer. Indicates whether the palette has changed. Indicates the color palette of the graphical image. Indicates whether the graphics object has been changed or edited. Returns the units per inch that are used for the metafile's coordinate mapping.Ĭontains the height of the metafile image in 0.01 millimeter units, the native scale used by enhanced metafiles.Ĭontains the width of the metafile image in 0.01 millimeter units, the native scale used by enhanced metafiles. Specifies the vertical size of the graphic in pixels. Provides access to the Windows GDI metafile handle, for accessing the GDI metafile object. Indicates whether the graphics object contains a graphic.ĭetermines how the metafile will be stored on disk. Provides an optional text description that is embedded in the metafile. Specifies the name of the author or application used to create the metafile.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |