Unit msegdiplus

Description

 

Overview

Classes, Interfaces, Objects and Records

Name Description
Class egdiplus  
Record GdiplusStartupInput  
Record GdiplusStartupOutput  
Record GpGraphics  
Record GpPoint  
Record ColorPalette  
Record GpImage  
Record GpBitmap  
Record GpTexture  
Record GpBrush  
Record GpSolidFill  
Record GpPen  
Record GpPath  
Record GpRegion  

Functions and Procedures

function initializegdiplus(const sonames: array of filenamety; const noexception: boolean = false): boolean;
procedure releasegdiplus;
function gdipcheckerror(const aerror: gpstatus): boolean;

Types

GpStatus = (...);
DebugEventLevel = (...);
DebugEventProc = procedure(level: DebugEventLevel; message: pchar); stdcall;
pGdiplusStartupinput = ˆGdiplusStartupinput;
NotificationHookProc = function(token: ppointer): GpStatus; stdcall;
NotificationUnhookProc = procedure(token: pointer); stdcall;
pGdiplusStartupoutput = ˆGdiplusStartupoutput;
PGpGraphics = ˆGpGraphics;
PPGpGraphics = ˆPGpGraphics;
INT = cint;
REAL = single;
GpREAL = REAL;
pReal = ˆREAL;
ARGB = uint32;
pARGB = ˆARGB;
pGpPoint = ˆGpPoint;
pColorPalette = ˆColorPalette;
pGpImage = ˆGpImage;
pGpBitmap = ˆGpBitmap;
ppGpBitmap = ˆpGpBitmap;
pGpTexture = ˆGpTexture;
ppGpTexture = ˆpGpTexture;
pGpBrush = ˆGpBrush;
pGpSolidFill = ˆGpSolidFill;
ppGpSolidFill = ˆpGpSolidFill;
pGpPen = ˆGpPen;
ppGpPen = ˆpGpPen;
pGpPath = ˆGpPath;
ppGpPath = ˆpGpPath;
pGpRegion = ˆGpRegion;
ppGpRegion = ˆpGpRegion;
QualityMode = (...);
pQualityMode = ˆQualityMode;
SmoothingMode = (...);
pSmoothingMode = ˆSmoothingMode;
WrapMode = (...);
GpUnit = (...);
GpMatrixOrder = (...);
GpFillMode = (...);
GpPenAlignment = (...);
GpLineCap = (...);
GpDashCap = (...);
GpDashStyle = (...);
GpLineJoin = (...);
GpCombineMode = (...);
GpFlushIntention = (...);
GpPixelOffsetMode = (...);

Constants

gdipluslib: array[0..0] of filenamety = ('gdiplus.dll');
gdipluserrormessages: array[GpStatus] of string = ( 'Ok', 'GenericError', 'InvalidParameter', 'OutOfMemory', 'ObjectBusy', 'InsufficientBuffer', 'NotImplemented', 'Win32Error', 'WrongState', 'Aborted', 'FileNotFound', 'ValueOverflow', 'AccessDenied', 'UnknownImageFormat', 'FontFamilyNotFound', 'FontStyleNotFound', 'NotTrueTypeFont', 'UnsupportedGdiplusVersion', 'GdiplusNotInitialized', 'PropertyNotFound', 'PropertyNotSupported' );
PaletteFlagsHasAlpha = $0001;
PaletteFlagsGrayScale = $0002;
PaletteFlagsHalftone = $0004;

Variables

GdiplusStartup: function(token: ppointer; input: pGdiplusStartupInput; output: pGdiplusStartupOutput): GpStatus; stdcall;
GdiplusShutdown: function(token: pointer): GpStatus; stdcall;
GdipFree: function(ptr: pointer): GpStatus; stdcall;
GdipCreateFromHDC: function(hdc_: HDC; graphics: PPGpGraphics): GpStatus; stdcall;
GdipCreateFromHDC2: function(hdc_: HDC; hDevice: HANDLE; graphics: ppGpGraphics): GpStatus; stdcall;
GdipCreateFromHWND: function(hwnd_: HWND; graphics: ppGpGraphics): GpStatus; stdcall;
GdipDeleteGraphics: function(graphics: PGpGraphics): GpStatus; stdcall;
GdipFlush: function(graphics: pGpGraphics; intention: GpFlushIntention): Gpstatus; stdcall;
GdipTranslateWorldTransform: function(graphics: pGpGraphics; dx: REAL; dy: REAL; order: GpMatrixOrder): GpStatus; stdcall;
GdipSetSmoothingMode: function(graphics: pGpGraphics; smoothingMode_: SmoothingMode): GpStatus; stdcall;
GdipGetSmoothingMode: function(graphics: pGpGraphics; smoothingMode: pSmoothingMode): GpStatus; stdcall;
GdipSetPixelOffsetMode: function(graphics: pGpGraphics; pixelOffsetMode: GpPixelOffsetMode): GpStatus; stdcall;
GdipSetClipRegion: function(graphics: pGpGraphics; region: pGpRegion; combineMode_: GpCombineMode): GpStatus; stdcall;
GdipResetClip: function(graphics: pGpGraphics): GpStatus; stdcall;
GdipDeleteBrush: function(brush: pGpBrush): GpStatus; stdcall;
GdipCreateSolidFill: function(color: ARGB; brush: ppGpSolidFill): GpStatus; stdcall;
GdipSetSolidFillColor: function(brush: pGpSolidFill; color: ARGB): GpStatus; stdcall;
GdipGetSolidFillColor: function(brush: pGpSolidFill; color: pARGB): GpStatus; stdcall;
GdipFillRectangleI: function(graphics: pGpGraphics; brush: pGpBrush; x: INT; y: INT; width: INT; height: INT): GpStatus; stdcall;
GdipFillPolygon2I: function(graphics: pGpGraphics; brush: pGpBrush; points: pGpPoint; count: INT): GpStatus; stdcall;
GdipCreatePen1: function(color: ARGB; width: REAL; unit_: GpUnit; pen: ppGpPen): GpStatus; stdcall;
GdipDeletePen: function(pen: pGpPen): GpStatus; stdcall;
GdipSetPenMode: function(pen: pGpPen; penMode: GpPenAlignment): GpStatus; stdcall;
GdipSetPenWidth: function(pen: pGpPen; width: REAL): GpStatus; stdcall;
GdipGetPenWidth: function(pen: pGpPen; width: pREAL): GpStatus; stdcall;
GdipSetPenColor: function(pen: pGpPen; argb_: ARGB): GpStatus; stdcall;
GdipGetPenColor: function(pen: pGpPen; argb_: pARGB): GpStatus; stdcall;
GdipSetPenBrushFill: function(pen: pGpPen; brush: pGpBrush): GpStatus; stdcall;
GdipSetPenLineCap197819: function(pen: pGpPen; startCap: GpLineCap; endCap: GpLineCap; dashCap: GpDashCap): GpStatus; stdcall;
GdipSetPenLineJoin: function(pen: pGpPen; lineJoin: GpLineJoin): GpStatus; stdcall;
GdipSetPenDashArray: function(pen: pGpPen; dash: pREAL; count: INT): GpStatus; stdcall;
GdipSetPenDashOffset: function(pen: pGpPen; offset: REAL): GpStatus; stdcall;
GdipSetPenDashStyle: function(pen: pGpPen; dashstyle: GpDashStyle): GpStatus; stdcall;
GdipDrawLinesI: function(graphics: pGpGraphics; pen: pGpPen; points: pGpPoint; count: INT): GpStatus; stdcall;
GdipDrawPolygonI: function(graphics: pGpGraphics; pen: pGpPen; points: pGpPoint; count: INT): GpStatus; stdcall;
GdipDrawEllipseI: function(graphics: pGpGraphics; pen: pGpPen; x: INT; y: INT; width: INT; height: INT): GpStatus; stdcall;
GdipFillEllipseI: function(graphics: pGpGraphics; brush: pGpBrush; x: INT; y: INT; width: INT; height: INT): GpStatus; stdcall;
GdipDrawArcI: function(graphics: pGpGraphics; pen: pGpPen; x: INT; y: INT; width: INT; heigh: INT; startAngle: REAL; sweepAngle: REAL): GpStatus; stdcall;
GdipFillPieI: function(graphics: pGpGraphics; brush: pGpBrush; x: INT; y: INT; width: INT; height: INT; startAngle: REAL; sweepAngle: REAL): GpStatus; stdcall;
GdipCreatePath: function(brushMode: GpFillMode; path: ppGpPath): GpStatus; stdcall;
GdipDeletePath: function(path: pGpPath): GpStatus; stdcall;
GdipStartPathFigure: function(path: pGpPath): GpStatus; stdcall;
GdipClosePathFigure: function(path: pGpPath): GpStatus; stdcall;
GdipAddPathArc: function(path: pGpPath; x: REAL; y: REAL; width: REAL; height: REAL; startangle: REAL; sweepangle: REAL): GpStatus; stdcall;
GdipFillPath: function(graphics: pGpGraphics; brush: pGpBrush; path: pGpPath): GpStatus; stdcall;
GdipCreateRegionHrgn: function(hRgn_: HRGN; region: ppGpRegion): GpStatus; stdcall;
GdipDeleteRegion: function(region: pGpRegion): GpStatus; stdcall;
GdipResetWorldTransform: function(graphics: pGpGraphics): GpStatus; stdcall;
GdipDisposeImage: function(image: pGpImage): GpStatus; stdcall;
GdipCreateBitmapFromHBITMAP: function(hbm: HBITMAP; hpal: HPALETTE; bitmap: ppGpBitmap): GpStatus; stdcall;
GdipSetImagePalette: function(image: pGpImage; palette: pColorPalette): GpStatus; stdcall;
GdipCreateTexture: function(image: pGpImage; wrapmode: WrapMode; texture: ppGpTexture): GpStatus; stdcall;
GdipResetTextureTransform: function(brush: pGpTexture): GpStatus; stdcall;
GdipTranslateTextureTransform: function(brush: pGpTexture; dx: REAL; dy: REAL; order: GpMatrixOrder): GpStatus; stdcall;

Description

Functions and Procedures

function initializegdiplus(const sonames: array of filenamety; const noexception: boolean = false): boolean;
 
procedure releasegdiplus;
 
function gdipcheckerror(const aerror: gpstatus): boolean;
 

Types

GpStatus = (...);
 
Values
  • Ok = 0
  • GenericError = 1
  • InvalidParameter = 2
  • OutOfMemory = 3
  • ObjectBusy = 4
  • InsufficientBuffer = 5
  • NotImplemented = 6
  • Win32Error = 7
  • WrongState = 8
  • Aborted = 9
  • FileNotFound = 10
  • ValueOverflow = 11
  • AccessDenied = 12
  • UnknownImageFormat = 13
  • FontFamilyNotFound = 14
  • FontStyleNotFound = 15
  • NotTrueTypeFont = 16
  • UnsupportedGdiplusVersion = 17
  • GdiplusNotInitialized = 18
  • PropertyNotFound = 19
  • PropertyNotSupported = 20
DebugEventLevel = (...);
 
Values
  • DebugEventLevelFatal
  • DebugEventLevelWarning
DebugEventProc = procedure(level: DebugEventLevel; message: pchar); stdcall;
 
pGdiplusStartupinput = ˆGdiplusStartupinput;
 
NotificationHookProc = function(token: ppointer): GpStatus; stdcall;
 
NotificationUnhookProc = procedure(token: pointer); stdcall;
 
pGdiplusStartupoutput = ˆGdiplusStartupoutput;
 
PGpGraphics = ˆGpGraphics;
 
PPGpGraphics = ˆPGpGraphics;
 
INT = cint;
 
REAL = single;
 
GpREAL = REAL;
 
pReal = ˆREAL;
 
ARGB = uint32;
 
pARGB = ˆARGB;
 
pGpPoint = ˆGpPoint;
 
pColorPalette = ˆColorPalette;
 
pGpImage = ˆGpImage;
 
pGpBitmap = ˆGpBitmap;
 
ppGpBitmap = ˆpGpBitmap;
 
pGpTexture = ˆGpTexture;
 
ppGpTexture = ˆpGpTexture;
 
pGpBrush = ˆGpBrush;
 
pGpSolidFill = ˆGpSolidFill;
 
ppGpSolidFill = ˆpGpSolidFill;
 
pGpPen = ˆGpPen;
 
ppGpPen = ˆpGpPen;
 
pGpPath = ˆGpPath;
 
ppGpPath = ˆpGpPath;
 
pGpRegion = ˆGpRegion;
 
ppGpRegion = ˆpGpRegion;
 
QualityMode = (...);
 
Values
  • QualityModeInvalid = -1
  • QualityModeDefault = 0
  • QualityModeLow = 1
  • QualityModeHigh = 2
pQualityMode = ˆQualityMode;
 
SmoothingMode = (...);
 
Values
  • SmoothingModeInvalid = ord(QualityModeInvalid)
  • SmoothingModeDefault = ord(QualityModeDefault)
  • SmoothingModeHighSpeed = ord(QualityModeLow)
  • SmoothingModeHighQuality = ord(QualityModeHigh)
  • SmoothingModeNone
  • SmoothingModeAntiAlias
pSmoothingMode = ˆSmoothingMode;
 
WrapMode = (...);
 
Values
  • WrapModeTile
  • WrapModeTileFlipX
  • WrapModeTileFlipY
  • WrapModeTileFlipXY
  • WrapModeClamp
GpUnit = (...);
 
Values
  • UnitWorld
  • UnitDisplay
  • UnitPixel
  • UnitPoint
  • UnitInch
  • UnitDocument
  • UnitMillimeter
GpMatrixOrder = (...);
 
Values
  • MatrixOrderPrepend = 0
  • MatrixOrderAppend = 1
GpFillMode = (...);
 
Values
  • FillModeAlternate
  • FillModeWinding
GpPenAlignment = (...);
 
Values
  • PenAlignmentCenter = 0
  • PenAlignmentInset = 1
GpLineCap = (...);
 
Values
  • LineCapFlat = 0
  • LineCapSquare = 1
  • LineCapRound = 2
  • LineCapTriangle = 3
  • LineCapNoAnchor = $10
  • LineCapSquareAnchor = $11
  • LineCapRoundAnchor = $12
  • LineCapDiamondAnchor = $13
  • LineCapArrowAnchor = $14
  • LineCapCustom = $ff
GpDashCap = (...);
 
Values
  • DashCapFlat = 0
  • DashCapRound = 2
  • DashCapTriangle = 3
GpDashStyle = (...);
 
Values
  • DashStyleSolid
  • DashStyleDash
  • DashStyleDot
  • DashStyleDashDot
  • DashStyleDashDotDot
  • DashStyleCustom
GpLineJoin = (...);
 
Values
  • LineJoinMiter = 0
  • LineJoinBevel = 1
  • LineJoinRound = 2
  • LineJoinMiterClipped = 3
GpCombineMode = (...);
 
Values
  • CombineModeReplace
  • CombineModeIntersect
  • CombineModeUnion
  • CombineModeXor
  • CombineModeExclude
  • CombineModeComplement
GpFlushIntention = (...);
 
Values
  • FlushIntentionFlush = 0
  • FlushIntentionSync = 1
GpPixelOffsetMode = (...);
 
Values
  • PixelOffsetModeInvalid = ord(QualityModeInvalid)
  • PixelOffsetModeDefault = ord(QualityModeDefault)
  • PixelOffsetModeHighSpeed = ord(QualityModeLow)
  • PixelOffsetModeHighQuality = ord(QualityModeHigh)
  • PixelOffsetModeNone
  • PixelOffsetModeHalf

Constants

gdipluslib: array[0..0] of filenamety = ('gdiplus.dll');
 
gdipluserrormessages: array[GpStatus] of string = ( 'Ok', 'GenericError', 'InvalidParameter', 'OutOfMemory', 'ObjectBusy', 'InsufficientBuffer', 'NotImplemented', 'Win32Error', 'WrongState', 'Aborted', 'FileNotFound', 'ValueOverflow', 'AccessDenied', 'UnknownImageFormat', 'FontFamilyNotFound', 'FontStyleNotFound', 'NotTrueTypeFont', 'UnsupportedGdiplusVersion', 'GdiplusNotInitialized', 'PropertyNotFound', 'PropertyNotSupported' );
 
PaletteFlagsHasAlpha = $0001;
 
PaletteFlagsGrayScale = $0002;
 
PaletteFlagsHalftone = $0004;
 

Variables

GdiplusStartup: function(token: ppointer; input: pGdiplusStartupInput; output: pGdiplusStartupOutput): GpStatus; stdcall;
 
GdiplusShutdown: function(token: pointer): GpStatus; stdcall;
 
GdipFree: function(ptr: pointer): GpStatus; stdcall;
 
GdipCreateFromHDC: function(hdc_: HDC; graphics: PPGpGraphics): GpStatus; stdcall;
 
GdipCreateFromHDC2: function(hdc_: HDC; hDevice: HANDLE; graphics: ppGpGraphics): GpStatus; stdcall;
 
GdipCreateFromHWND: function(hwnd_: HWND; graphics: ppGpGraphics): GpStatus; stdcall;
 
GdipDeleteGraphics: function(graphics: PGpGraphics): GpStatus; stdcall;
 
GdipFlush: function(graphics: pGpGraphics; intention: GpFlushIntention): Gpstatus; stdcall;
 
GdipTranslateWorldTransform: function(graphics: pGpGraphics; dx: REAL; dy: REAL; order: GpMatrixOrder): GpStatus; stdcall;
 
GdipSetSmoothingMode: function(graphics: pGpGraphics; smoothingMode_: SmoothingMode): GpStatus; stdcall;
 
GdipGetSmoothingMode: function(graphics: pGpGraphics; smoothingMode: pSmoothingMode): GpStatus; stdcall;
 
GdipSetPixelOffsetMode: function(graphics: pGpGraphics; pixelOffsetMode: GpPixelOffsetMode): GpStatus; stdcall;
 
GdipSetClipRegion: function(graphics: pGpGraphics; region: pGpRegion; combineMode_: GpCombineMode): GpStatus; stdcall;
 
GdipResetClip: function(graphics: pGpGraphics): GpStatus; stdcall;
 
GdipDeleteBrush: function(brush: pGpBrush): GpStatus; stdcall;
 
GdipCreateSolidFill: function(color: ARGB; brush: ppGpSolidFill): GpStatus; stdcall;
 
GdipSetSolidFillColor: function(brush: pGpSolidFill; color: ARGB): GpStatus; stdcall;
 
GdipGetSolidFillColor: function(brush: pGpSolidFill; color: pARGB): GpStatus; stdcall;
 
GdipFillRectangleI: function(graphics: pGpGraphics; brush: pGpBrush; x: INT; y: INT; width: INT; height: INT): GpStatus; stdcall;
 
GdipFillPolygon2I: function(graphics: pGpGraphics; brush: pGpBrush; points: pGpPoint; count: INT): GpStatus; stdcall;
 
GdipCreatePen1: function(color: ARGB; width: REAL; unit_: GpUnit; pen: ppGpPen): GpStatus; stdcall;
 
GdipDeletePen: function(pen: pGpPen): GpStatus; stdcall;
 
GdipSetPenMode: function(pen: pGpPen; penMode: GpPenAlignment): GpStatus; stdcall;
 
GdipSetPenWidth: function(pen: pGpPen; width: REAL): GpStatus; stdcall;
 
GdipGetPenWidth: function(pen: pGpPen; width: pREAL): GpStatus; stdcall;
 
GdipSetPenColor: function(pen: pGpPen; argb_: ARGB): GpStatus; stdcall;
 
GdipGetPenColor: function(pen: pGpPen; argb_: pARGB): GpStatus; stdcall;
 
GdipSetPenBrushFill: function(pen: pGpPen; brush: pGpBrush): GpStatus; stdcall;
 
GdipSetPenLineCap197819: function(pen: pGpPen; startCap: GpLineCap; endCap: GpLineCap; dashCap: GpDashCap): GpStatus; stdcall;
 
GdipSetPenLineJoin: function(pen: pGpPen; lineJoin: GpLineJoin): GpStatus; stdcall;
 
GdipSetPenDashArray: function(pen: pGpPen; dash: pREAL; count: INT): GpStatus; stdcall;
 
GdipSetPenDashOffset: function(pen: pGpPen; offset: REAL): GpStatus; stdcall;
 
GdipSetPenDashStyle: function(pen: pGpPen; dashstyle: GpDashStyle): GpStatus; stdcall;
 
GdipDrawLinesI: function(graphics: pGpGraphics; pen: pGpPen; points: pGpPoint; count: INT): GpStatus; stdcall;
 
GdipDrawPolygonI: function(graphics: pGpGraphics; pen: pGpPen; points: pGpPoint; count: INT): GpStatus; stdcall;
 
GdipDrawEllipseI: function(graphics: pGpGraphics; pen: pGpPen; x: INT; y: INT; width: INT; height: INT): GpStatus; stdcall;
 
GdipFillEllipseI: function(graphics: pGpGraphics; brush: pGpBrush; x: INT; y: INT; width: INT; height: INT): GpStatus; stdcall;
 
GdipDrawArcI: function(graphics: pGpGraphics; pen: pGpPen; x: INT; y: INT; width: INT; heigh: INT; startAngle: REAL; sweepAngle: REAL): GpStatus; stdcall;
 
GdipFillPieI: function(graphics: pGpGraphics; brush: pGpBrush; x: INT; y: INT; width: INT; height: INT; startAngle: REAL; sweepAngle: REAL): GpStatus; stdcall;
 
GdipCreatePath: function(brushMode: GpFillMode; path: ppGpPath): GpStatus; stdcall;
 
GdipDeletePath: function(path: pGpPath): GpStatus; stdcall;
 
GdipStartPathFigure: function(path: pGpPath): GpStatus; stdcall;
 
GdipClosePathFigure: function(path: pGpPath): GpStatus; stdcall;
 
GdipAddPathArc: function(path: pGpPath; x: REAL; y: REAL; width: REAL; height: REAL; startangle: REAL; sweepangle: REAL): GpStatus; stdcall;
 
GdipFillPath: function(graphics: pGpGraphics; brush: pGpBrush; path: pGpPath): GpStatus; stdcall;
 
GdipCreateRegionHrgn: function(hRgn_: HRGN; region: ppGpRegion): GpStatus; stdcall;
 
GdipDeleteRegion: function(region: pGpRegion): GpStatus; stdcall;
 
GdipResetWorldTransform: function(graphics: pGpGraphics): GpStatus; stdcall;
 
GdipDisposeImage: function(image: pGpImage): GpStatus; stdcall;
 
GdipCreateBitmapFromHBITMAP: function(hbm: HBITMAP; hpal: HPALETTE; bitmap: ppGpBitmap): GpStatus; stdcall;
 
GdipSetImagePalette: function(image: pGpImage; palette: pColorPalette): GpStatus; stdcall;
 
GdipCreateTexture: function(image: pGpImage; wrapmode: WrapMode; texture: ppGpTexture): GpStatus; stdcall;
 
GdipResetTextureTransform: function(brush: pGpTexture): GpStatus; stdcall;
 
GdipTranslateTextureTransform: function(brush: pGpTexture; dx: REAL; dy: REAL; order: GpMatrixOrder): GpStatus; stdcall;
 

Generated by PasDoc 0.16.0.