Class IGDIPlus.TGPBitmap
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 TGPBitmap = class( TGPImage, IGPBitmap )
C++ Builder:
class TGPBitmap : public TGPImage
Visual C++ (MFC):
class CTGPBitmap : public CTGPImage
C# (.NET):
public ref class TGPBitmap : Mitov.SignalLab.Image
Summary
Provides methods for creating and manipulating raster bitmap images.
Description
The TGPBitmap class inherits from the TGPImage class. The TGPImage class provides methods for loading and saving vector images (metafiles) and raster images (bitmaps). The TGPBitmap class expands on the capabilities of the TGPImage class by providing additional methods for creating and manipulating raster images.
Methods
Public
- function Clone(rect : TGPRect; format : TGPPixelFormat) : TGPBitmap
- function Clone(x : Integer; y : Integer; width : Integer; height : Integer; format : TGPPixelFormat) : TGPBitmap
- function CloneF(rect : TGPRectF; format : TGPPixelFormat) : TGPBitmap
- function CloneF(x : Single; y : Single; width : Single; height : Single; format : TGPPixelFormat) : TGPBitmap
- function LockBits(rect : TGPRect; flags : Cardinal; format : TGPPixelFormat) : IGPBitmapData
- function GetPixel(x : Integer; y : Integer) : TGPColor
- function SetPixel(x : Integer; y : Integer; color : TGPColor) : TGPBitmap
- procedure SetPixelProp(x : Integer; y : Integer; color : TGPColor)
- function SetResolution(xdpi : Single; ydpi : Single) : TGPBitmap
- function GetHBITMAP(colorBackground : TGPColor) : HBITMAP
- function GetHICON() : HICON
- function FromBITMAPINFO(var gdiBitmapInfo : TBITMAPINFO; gdiBitmapData : Pointer) : TGPBitmap - Creates a Bitmap object based on a BITMAPINFO structure and an array of pixel data.
- function FromFile(filename : WideString; useEmbeddedColorManagement : Boolean) : TGPBitmap - Creates a Bitmap object based on an image file.
- function FromStream(stream : IStream; useEmbeddedColorManagement : Boolean) : TGPBitmap - Creates a Bitmap object based on a stream.
- function FromHBITMAP(hbm : HBITMAP; hpal : HPALETTE) : TGPBitmap - Creates a Bitmap object based on a handle to a Windows Microsoft Windows Graphics Device Interface (GDI) bitmap and a handle to a GDI palette.
- function FromHICON(hicon : HICON) : TGPBitmap - Creates a Bitmap object based on a handle to an icon.
- function FromResource(hInstance : HMODULE; bitmapName : WideString) : TGPBitmap - Creates a Bitmap object based on an application or DLL instance handle and the name of a bitmap resource.
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