Class IGDIPlus.TGPImage
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: TGPBase
Contents |
Syntax
Delphi:
type TGPImage = class( TGPBase, IGPImage )
C++ Builder:
class TGPImage : public TGPBase
Visual C++ (MFC):
class CTGPImage : public CTGPBase
C# (.NET):
public ref class TGPImage : Mitov.SignalLab.Base
Summary
GDI+ Image class.
Description
Use this class to create and manipulate GDI+ Images.
The TGPImage class provides methods for loading and saving raster images (bitmaps) and vector images (metafiles). An TGPImage object encapsulates a bitmap or a metafile and stores attributes that you can retrieve by calling various Get methods. You can construct TGPImage objects from a variety of file types including BMP, ICON, GIF, JPEG, Exif, PNG, TIFF, WMF, and EMF.
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