Class IGDIPlus.TGPMetafile
This is a Beta Read Only version of this page. Please review and send recommendations to mitov@mitov.com. We will enable the editing as soon as we are happy with the overall Wiki site.
Package: SignalLabBasicPkg
Unit: IGDIPlus
Inherits: TGPImage
Contents |
Syntax
Delphi:
type TGPMetafile = class( TGPImage, IGPMetafile )
C++ Builder:
class TGPMetafile : public TGPImage
Visual C++ (MFC):
class CTGPMetafile : public CTGPImage
C# (.NET):
public ref class TGPMetafile : Mitov.SignalLab.Image
Summary
Defines a graphic metafile.
Description
The TGPMetafile class defines a graphic metafile. A metafile contains records that describe a sequence of graphics API calls. Metafiles can be recorded (constructed) and played back (displayed). Remarks Some Metafile constructors (those that receive a device context handle) create Metafile objects that are used to record metafiles. Other Metafile constructors (those that do not receive a device context handle) create Metafile objects that are used to display (play back) metafiles.
Methods
Public
- function GetMetafileHeader(hWmf : HMETAFILE; var wmfPlaceableFileHeader : TGPWmfPlaceableFileHeader) : IGPMetafileHeader
- function GetMetafileHeader(hEmf : HENHMETAFILE) : IGPMetafileHeader
- function GetMetafileHeader(filename : WideString) : IGPMetafileHeader
- function GetMetafileHeader(stream : IStream) : IGPMetafileHeader
- function GetMetafileHeader() : IGPMetafileHeader - Returns the the metafile header.
- function GetHENHMETAFILE() : HENHMETAFILE
- function PlayRecord(recordType : TGPEmfPlusRecordType; flags : Cardinal; dataSize : Cardinal; data : PBYTE) : TGPMetafile
- function SetDownLevelRasterizationLimit(metafileRasterizationLimitDpi : Cardinal) : TGPMetafile
- procedure SetDownLevelRasterizationLimitProp(metafileRasterizationLimitDpi : Cardinal)
- function GetDownLevelRasterizationLimit() : Cardinal
- function EmfToWmfBits(hemf : HENHMETAFILE; cbData16 : Cardinal; pData16 : PBYTE; iMapMode : Integer; var eFlags : TGPEmfToWmfBitsFlags) : Cardinal
From TGPImage
Methods
Public
- function FromFile(filename : WideString; useEmbeddedColorManagement : Boolean) : TGPImage - Creates a TGPImage object based on a file.
- function FromStream(stream : IStream; useEmbeddedColorManagement : Boolean) : TGPImage - Creates a new TGPImage object based on a stream.
- function Clone() : TGPImage
- function Save(filename : WideString; clsidEncoder : TGUID; encoderParams : PGPEncoderParameters) : TGPImage
- function Save(stream : IStream; clsidEncoder : TGUID; encoderParams : PGPEncoderParameters) : TGPImage
- function SaveAdd(encoderParams : PGPEncoderParameters) : TGPImage
- function SaveAdd(newImage : IGPImage; encoderParams : PGPEncoderParameters) : TGPImage
- function GetType() : TGPImageType
- function GetPhysicalDimension() : TGPSizeF
- function GetBounds(srcRect : TGPRectF; srcUnit : TGPUnit) : TGPImage
- function GetWidth() : Cardinal
- function GetHeight() : Cardinal
- function GetHorizontalResolution() : Single
- function GetVerticalResolution() : Single
- function GetFlags() : Cardinal
- function GetRawFormat() : TGUID
- function GetFormatName() : String
- function GetPixelFormat() : TGPPixelFormat
- function GetPaletteSize() : Integer
- function GetPalette(palette : PGPColorPalette; size : Integer) : TGPImage
- function SetPalette(palette : PGPColorPalette) : TGPImage
- function GetThumbnailImage(thumbWidth : Cardinal; thumbHeight : Cardinal; callback : TGPGetThumbnailImageAbortProc) : TGPImage
- function GetFrameDimensionsCount() : Cardinal
- function GetFrameDimensionsList() : TGUIDArray
- function GetFrameCount(dimensionID : TGUID) : Cardinal
- function SelectActiveFrame(dimensionID : TGUID; frameIndex : Cardinal) : TGPImage
- function RotateFlip(rotateFlipType : TGPRotateFlipType) : TGPImage
- function GetPropertyCount() : Cardinal
- function GetPropertyIdList() : TGPPropIDArray
- function GetPropertyItemSize(propId : PROPID) : Cardinal
- function GetPropertyItem(propId : PROPID; propSize : Cardinal; buffer : PGPPropertyItem) : TGPImage
- function GetPropertySize(totalBufferSize : Cardinal; numProperties : Cardinal) : TGPImage
- function GetAllPropertyItems(totalBufferSize : Cardinal; numProperties : Cardinal; allItems : PGPPropertyItem) : TGPImage
- function RemovePropertyItem(propId : TPROPID) : TGPImage
- function SetPropertyItem(item : TGPPropertyItem) : TGPImage
- function GetEncoderParameterListSize(clsidEncoder : TGUID) : Cardinal
- function GetEncoderParameterList(clsidEncoder : TGUID; size : Cardinal; buffer : PGPEncoderParameters) : TGPImage