/*******************************************************************************
Vczh Library++ 3.0
Developer: Zihan Chen(vczh)
GacUI::GDI Helper Library
Classes:
WinRegion : Region
WinTransform : Vertex Transformation
WinBrush : Brush for filling geometries
WinPen : Pen for filling lines
WinFont : Font
WinDC : Device Context
WinControlDC : Device Context from HWND
WinImageDC : Device Context from images
WinProxyDC : Device Context from HDC
WinDIB : Device Independent Bitmap
WinMetaFileBuilder : Metafile Builder
WinMetaFile : Metafile Image
WinBitmap : Bitmap
Comments:
WinDC::PolyDraw
Points : Points
Actions : How to deal with points
PT_MOVETO :MoveTo and consume 1 point
PT_LINETO :LineTo and consume 1 point
PT_BEZIERTO :Draw a bezier curve and consume 3 points
PT_LINETO and PT_BEZIERTO can be mixed with PT_CLOSFIGURE to close the geometry begins from the last PT_MOVETO that happened
PointCount : Point count
WinDC::DrawBuffer
Format: See DrawText
Pen:
Style:
PS_SOLID, PS_DASH, PS_DOT, PS_DASHDOT, PS_DASHDOTDOT, PS_USERSTYLE (for Geometric pen)
EndCap:
PS_ENDCAP_ROUND, PS_ENDCAP_SQUARE, PS_ENDCAP_FLAT
Join:
PS_JOIN_BEVEL, PS_JOIN_MITER, PS_JOIN_ROUND
Brush:
Hatch:
HS_BDIAGONAL, HS_CROSS, HS_DIAGCROSS, HS_FDIAGONAL, HS_HORIZONTAL, HS_VERTICAL
Region:
Combine:
RGN_AND, RGN_OR, RGN_XOR, RGN_DIFF, RGN_COPY
ImageCopy:
Draw ROP:
BLACKNESS, DSTINVERT, MERGECOPY, MERGEPAINT, NOTSRCCOPY, NOTSRCERASE,
PATCOPY, PATINVERT, PATPAINT, SRCAND, SRCCOPY, SRCERASE, SRCINVERT, SRCPAINT, WHITENESS
RasterOperation:
R2_BLACK, R2_COPYPEN, R2_MASKNOTPEN, R2_MASKPEN, R2_MASKPENNOT, R2_MERGENOTPEN, R2_MERGEPEN
R2_MERGEPENNOT, R2_NOP, R2_NOT, R2_NOTCOPYPEN, R2_NOTMASKPEN, R2_NOTMERGEPEN, R2_NOTXORPEN
R2_WHITE, R2_XORPEN
WinDIB:
TransformAlphaChannel(): Convert to an GDI compatible bitmap with alpha channel after all pixels are filled.
Generate×××(): Predefined alpha channel generation, TransformAlphaChannel should be called after that
*******************************************************************************/
void Copy(vint dstX, vint dstY, vint dstW, vint dstH, WinDC* Source, vint srcX, vint srcY, DWORD DrawROP=SRCCOPY);
void
(
,
,
,
,
*
,
,
,
=(
)
0x00CC0020
);
void Copy(vint dstX, vint dstY, vint dstW, vint dstH, WinDC* Source, vint srcX, vint srcY ,vint srcW, vint srcH, DWORD DrawROP=SRCCOPY);
void
(
,
,
,
,
*
,
,
,
,
,
=(
)
0x00CC0020
);