public enum RasterImagePaintCallbackFunction : System.Enum, System.IComparable, System.IConvertible, System.IFormattable
'Declaration Public Enum RasterImagePaintCallbackFunction Inherits System.Enum Implements System.IComparable, System.IConvertible, System.IFormattable
'Usage Dim instance As RasterImagePaintCallbackFunction
public enum class RasterImagePaintCallbackFunction : public System.Enum, System.IComparable, System.IConvertible, System.IFormattable
Value | Member | Description |
---|---|---|
0x00000000 | IsCompatibleDCCallback | This callback checks whether the DC is compatible with a particular RasterPaintDibInfo class. |
0x00000001 | GetDeviceCapsCallback | This callback replaces the GetDeviceCaps GDI function. |
0x00000002 | SetStretchBltModeCallback | This callback replaces the SetStretchBltMode GDI function. |
0x00000003 | IntersectClipRectCallback | This callback replaces the IntersectClipRect GDI function. |
0x00000004 | SaveDCCallback | This callback replaces the SaveDC GDI function. |
0x00000005 | RestoreDCCallback | This callback replaces the RestoreDC GDI function. |
0x00000006 | StretchDIBitsCallback | This callback replaces the StretchDIBits GDI function. Use it to perform the actual painting. |
0x00000007 | SetViewportOrgExCallback | This callback replaces the SetViewportOrgEx GDI function. |
0x00000008 | GetViewportOrgExCallback | This callback replaces the GetViewportOrgEx GDI function. |
0x00000009 | SelectPaletteCallback | This callback replaces the SelectPalette GDI function. |
0x0000000A | RealizePaletteCallback | This callback replaces the RealizePalette GDI function. |
0x0000000B | GetMapModeCallback | This callback replaces the GetMapMode GDI function. |
0x0000000C | ExtSelectClipRgnCallback | This callback replaces the ExtSelectClipRgn GDI function. |
0x0000000D | GetGraphicsModeCallback | This callback replaces the GetGraphicsMode GDI function. |
0x0000000E | GetWorldTransformCallback | This callback replaces the GetWorldTransform GDI function. |
0x0000000F | ConvertLineCallback | This callback converts a line of data. |
0x00000010 | GetDibInfoCallback | This callback provides information on the data expected by the device. See RasterPaintDibInfo for more details. |
0x00000011 | PrePaintCallback | This callback informs your RasterPaintCallbacks class that it has been selected for painting. It is called before painting starts. Use it to allocate any memory needed for painting. |
0x00000012 | PostPaintCallback | This callback gets called after painting is finished. Use it to free any memory allocated in PrePaintCallback. |
0x00000013 | FillRectCallback | This callback replaces the FillRect GDI function. |
The RasterPaintCallbacks class can contain a number of callbacks used for custom painting.
The number and parameter types for each callback is determined by the callback type using the values in this enumeration.
The number and parameter types for each callback are indicated below.
Parameter | Description |
---|---|
IntPtr pOutScan |
The output buffer (pointer to an unmanaged array of bytes). |
IntPtr pInScan |
The input buffer (pointer to an unmanaged array of bytes). |
int nLeft |
Left offset of the first pixel in the input buffer to be used in conversion. (The pixels before this offset should be discarded). |
int nRight |
Right offset of the first pixel after the last pixel in the input buffer to be used in conversion. (Pixels nLeft..nRight-1 should be used in conversion). |
RasterPaintDibInfo pDibInfo |
Pointer to a RasterPaintDibInfo class returned by the GetDibInfoCallback callback. Contains information on the format of the output data. This is a read-only class, any changes made to it will be discarded. |
Parameter | Description |
---|---|
IntPtr hdc |
The Windows HDC |
IntPtr hRgn |
The region handle |
int nMode |
The selection mode |
Parameter | Description |
---|---|
IntPtr hdc |
The Windows HDC |
int nIndex |
Identifies which capability to return. |
Parameter | Description |
---|---|
IntPtr hdc |
The Windows HDC |
int nWidth |
The width of the image data to be painted. (Might be less than the image width). |
Parameter | Description |
---|---|
IntPtr hdc |
The Windows HDC |
Parameter | Description |
---|---|
IntPtr hdc |
The Windows HDC |
Parameter | Description |
---|---|
IntPtr hdc |
The Windows HDC |
Parameter | Description |
---|---|
IntPtr hdc |
The Windows HDC |
XScalarNumerator
XScalarDenominator
YScalarNumerator
YScalarDenominator
XOffset
YOffset
Parameter | Description |
---|---|
IntPtr hdc |
The Windows HDC |
int nLeft |
The left offset |
int nTop |
The top offset |
int nRight |
The right offset |
int nBottom |
The bottom offset |
Parameter | Description |
---|---|
IntPtr hdc |
The Windows HDC |
Parameter | Description |
---|---|
IntPtr hdc |
The Windows HDC |
IntPtr prcDestClip |
Unmanaged pointer to the destination clipping rectangle. It points to an RECT GDI structure. |
Parameter | Description |
---|---|
IntPtr hdc |
The Windows HDC |
Parameter | Description |
---|---|
IntPtr hdc |
The Windows HDC |
Parameter | Description |
---|---|
IntPtr hdc |
The Windows HDC |
int nSaveDC |
Index of the DC to be restored. |
Parameter | Description |
---|---|
IntPtr hdc |
The Windows HDC |
Parameter | Description |
---|---|
IntPtr hdc |
The Windows HDC |
IntPtr hPal |
The palette handle. This is a native GDI HPALETTE handle. |
int bForceBackground |
Set to 1 to force the palette to be a background palette and match the existing colors. Set to 0 reset the DC colors to the colors in the palette. |
Parameter | Description |
---|---|
IntPtr hdc |
The Windows HDC |
int nStretchMode |
The stretch mode. |
Parameter | Description |
---|---|
IntPtr hdc |
The Windows HDC |
int nX |
The left offset of the new viewport origin. |
int nY |
The top offset of the new viewport origin. |
IntPtr lpPoint |
Pointer to an unmanaged GDI POINT structure. |
Parameter | Description |
---|---|
IntPtr hdc |
The Windows HDC |
int nXDest |
The left offset of the destination. |
int nYDest |
The top offset of the destination. |
int nDestWidth |
The width of the destination. |
int nDestHeight |
The height of the destination |
int nXSrc |
The left offset in the source buffer |
int nYSrc |
The top offset in the source buffer. |
int nSrcWidth |
The width of the source buffer. |
int nSrcHeight |
The height of the source buffer. |
IntPtr lpvBits |
Pointer to data (unmanaged pointer to an array of bytes). |
IntPtr lpbmi |
Unmanaged pointer to a native GDI BITMAPINFO structure describing the image data. |
int fuColorUse |
Indicates how the palette colors are to be used. |
unsigned int ulROP3Code |
The ROP code |
Parameter | Description |
---|---|
IntPtr hdc |
The Windows HDC |
LPRECT lprc |
The rectangle coordinates to fill. |
COLORREF color |
The color to use. You must create a solid brush for this color. |
System.Object
System.ValueType
System.Enum
Leadtools.Drawing.RasterImagePaintCallbackFunction