|
|
|
GDI+ Structures |
|
BitmapData |
|
The BitmapData structure is used by the GdpiBitmapLockBits and GdpiBitmapUnlockBits functions. A BitmapData structure stores attributes of a bitmap.
|
|
Syntax
PowerBASIC syntax
Members
nWidth
nHeight
Stride
PixelFormat
Scan0
Reserved
|
|
CharacterRange |
|
A CharacterRange structure specifies a range of character positions within a string.
|
|
Syntax
PowerBASIC Syntax
First
Length
Remarks
|
|
ColorMap |
|
The ColorMap structure contains two COLORREF values. Several of the ImageAttributes functions adjust image colors by using a color remap table, which is an array of ColorMap structures.
|
|
Syntax
Members
oldColor
newColor
Remarks
Defined in WinApi32.inc as follows:
|
|
ColorMatrix |
|
The ColorMatrix structure contains a 55 matrix of real numbers. Several of the ImageAttributes functions adjust image colors by using a color matrix.
|
|
Syntax
PowerBASIC Syntax
Members
m
Remarks
|
|
ColorPalette |
|
The ColorPalette structure defines an array of colors that make up a color palette. The colors are 32-bit ARGB colors.
|
|
Syntax
PowerBASIC Syntax
Members
Flags
Count
Entries
|
|
EncoderParameter |
|
An EncoderParameter structure holds a parameter that can be passed to an image encoder. An EncoderParameter structure can also be used to receive a list of possible values supported by a particular parameter of a particular image encoder.
|
|
Syntax
PowerBASIC Syntax
Members
Guid
NumberOfValues
Type
Value
|
|
EncoderParameters |
|
An EncoderParameters structure is an array of EncoderParameter structures along with a data member that specifies the number of EncoderParameter structures in the array.
|
|
Syntax
PowerBASIC Syntax
Members
Count
Parameter ()
Remarks
|
|
ENHMETAHEADER3 |
|
The ENHMETAHEADER3 structure contains enhanced-metafile data including the dimensions of the metafile image, the number of records in the metafile, and the resolution of the device on which the metafile was created.
|
|
Syntax
PowerBASIC Syntax
Members
iType
nSize
rclBounds
rclFrame
dSignature
nVersion
nBytes
nRecords
nHandles
sReserved
nDescription
offDescription
nPalEntries
szlDevice
szlMillimeters
|
|
GdiPlusStartupInput |
|
The GdiplusStartupInput structure holds a block of arguments that are required by the GdiplusStartup function.
|
|
Syntax
PowerBASIC Syntax
Members
GdiplusVersion
DebugEventCallback
SuppressBackgroundThread
SuppressExternalCodecs
Remarks
|
|
GdiPlusStartupOutput |
|
The GdiplusStartup function uses the GdiplusStartupOutput structure to return (in its output parameter) a pointer to a hook function and a pointer to an unhook function. If you set the SuppressBackgroundThread member of the input parameter to TRUE, then you are responsible for calling those functions to replace the Microsoft Windows GDI+ background thread.
Call the hook and unhook functions before and after the application's main message loop; that is, a message loop that is active for the lifetime of GDI+. Call the hook function before the loop starts, and call the unhook function after the loop ends. The token parameter of the hook function receives an identifier that you should later pass to the unhook function. If you do not pass the proper identifier (the one returned by the hook function) to the unhook function, there will be resource leaks that won't be cleaned up until the process exits.
If you do not want to be responsible for calling the hook and unhook functions, set the SuppressBackgroundThread member of the input parameter (passed to GdiplusStartup) to FALSE.
|
|
Syntax
PowerBASIC Syntax
Members
NotificationHook
NotificationUnhook
|
|
ImageCodecInfo |
|
An ImageCodecInfo structure stores information about an image codec (encoder/decoder). GDI+ provides several built-in image codecs. You can obtain information about those codecs by calling the GetImageEncoders function and the GetImageDecoders function. Each of those functions returns an array of ImageCodecInfo structures, one for each available encoder or decoder.
|
|
Syntax
PowerBASIC Syntax
Members
ClassID
FormatID
CodecName
DllName
FormatDescription
FilenameExtension
MimeType
Flags
Version
SigCount
SigSize
SigPattern
SigMask
|
|
LOGFONTW |
|
Defines the attributes of a font.
|
|
Syntax
PowerBASIC Syntax
Members
lfHeight
lfWidth
lfEscapement
lfOrientation
lfWeight
lfItalic
lfUnderline
lfStrikeOut
lfCharSet
lfOutPrecision
lfClipPrecision
lfQuality
lfPitchAndFamily
lfFaceName
|
|
MetafileHeader |
|
A MetafileHeader object stores properties of an associated metafile.
|
|
PowerBASIC Syntax
Remarks
|
|
PathData |
|
The PathData structure is used by the GdipGetPathData function. It has an array of points and an array of types. Each element in the array of types is a byte that specifies the point type and a set of flags for the corresponding element in the array of points. You can use a PathData structure to get or set the data points (and their types) of a path.
|
|
Syntax
PowerBASIC Syntax
|
|
PointF |
|
Encapsulates a point in a 2-D coordinate system.
|
|
yntax
PowerBASIC Syntax
|