125 for(
a = 0;
a <=
b;
a++)
127 (
x1 * (
b -
a) +
x2 *
a) /
b - radius,
128 (
y1 * (
b -
a) +
y2 *
a) /
b - radius,
129 (
x1 * (
b -
a) +
x2 *
a) /
b + radius,
130 (
y1 * (
b -
a) +
y2 *
a) /
b + radius);
141 for(
a = 0;
a <=
b;
a++)
142 for(
y = (
y1 * (
b -
a) +
y2 *
a) /
b - radius + 1;
143 y < (
y1 * (
b -
a) +
y2 *
a) /
b + radius + 1;
y++)
144 for(
x = (
x1 * (
b -
a) +
x2 *
a) /
b - radius + 1;
145 x < (
x1 * (
b -
a) +
x2 *
a) /
b + radius + 1;
x++)
155 for(
b = -
r;
b <=
r;
b++)
156 for(
a = -
r;
a <=
r;
a++)
157 if ((
a *
a +
b *
b <=
r *
r) && (
rand() % 4 == 0))
171 for(
a = 0;
a <=
b;
a++)
176 for(
a = 0;
a <=
b;
a++)
189 for(
a = 0;
a <=
b;
a++)
197 for(
a = 0;
a <=
b;
a++)
202 for(
a = 0;
a <=
b;
a++)
213 POINT offsTop[] = {{3, -3}, {2, -2}, {0, 0},
214 {-4, -4}, {-2, -2}, {-1, 0}};
215 POINT offsBtm[] = {{-3, 3}, {-2, 2}, {-1, 1},
216 {3, 3}, {2, 2}, {0, 1}};
219 pts[0].
x =
x1 + offsTop[
idx].
x;
220 pts[0].
y =
y1 + offsTop[
idx].
y;
221 pts[1].
x =
x1 + offsBtm[
idx].
x;
222 pts[1].
y =
y1 + offsBtm[
idx].
y;
223 pts[2].
x =
x2 + offsBtm[
idx].
x;
224 pts[2].
y =
y2 + offsBtm[
idx].
y;
225 pts[3].
x =
x2 + offsTop[
idx].
x;
226 pts[3].
y =
y2 + offsTop[
idx].
y;
293 HDC hdcSrc,
int nXSrc,
int nYSrc,
int nSrcWidth,
int nSrcHeight,
296 HDC hTempDC1, hTempDC2;
297 HBITMAP hbmTempColor, hbmTempMask;
310 hdcSrc, nXSrc, nYSrc, nSrcWidth, nSrcHeight, keyColor);
314 else if (nWidth == nSrcWidth && nHeight == nSrcHeight && keyColor ==
CLR_INVALID)
316 ::MaskBlt(hdcDest, nXDest, nYDest, nWidth, nHeight,
329 ::StretchBlt(hTempDC2, 0, 0, nWidth, nHeight, hTempDC1, 0, 0, nSrcWidth, nSrcHeight,
SRCCOPY);
341 ::MaskBlt(hdcDest, nXDest, nYDest, nWidth, nHeight, hTempDC1, 0, 0,
347 ::BitBlt(hTempDC1, 0, 0, nWidth, nHeight, hdcDest, nXDest, nYDest,
SRCCOPY);
351 hdcSrc, nXSrc, nYSrc, nSrcWidth, nSrcHeight, keyColor);
354 ::MaskBlt(hdcDest, nXDest, nYDest, nWidth, nHeight, hTempDC1, 0, 0,
FORCEINLINE VOID SetPixel(_In_ ULONG Left, _In_ ULONG Top, _In_ UCHAR Color)
DWORD GetPixel(LPDIRECTDRAWSURFACE7 Surface, UINT x, UINT y)
HBITMAP CreateColorDIB(int width, int height, COLORREF rgb)
void RectSel(HDC hdc, LONG x1, LONG y1, LONG x2, LONG y2)
void Bezier(HDC hdc, POINT p1, POINT p2, POINT p3, POINT p4, COLORREF color, int thickness)
void Ellp(HDC hdc, LONG x1, LONG y1, LONG x2, LONG y2, COLORREF fg, COLORREF bg, int thickness, int style)
void Poly(HDC hdc, POINT *lpPoints, int nCount, COLORREF fg, COLORREF bg, int thickness, int style, BOOL closed, BOOL inverted)
BOOL ColorKeyedMaskBlt(HDC hdcDest, int nXDest, int nYDest, int nWidth, int nHeight, HDC hdcSrc, int nXSrc, int nYSrc, int nSrcWidth, int nSrcHeight, HBITMAP hbmMask, COLORREF keyColor)
void DrawXorRect(HDC hdc, const RECT *prc)
void RRect(HDC hdc, LONG x1, LONG y1, LONG x2, LONG y2, COLORREF fg, COLORREF bg, int thickness, int style)
void Replace(HDC hdc, LONG x1, LONG y1, LONG x2, LONG y2, COLORREF fg, COLORREF bg, LONG radius)
void Erase(HDC hdc, LONG x1, LONG y1, LONG x2, LONG y2, COLORREF color, LONG radius)
void Airbrush(HDC hdc, LONG x, LONG y, COLORREF color, LONG r)
void Fill(HDC hdc, LONG x, LONG y, COLORREF color)
static VOID NTAPI BitBlt(_In_ ULONG Left, _In_ ULONG Top, _In_ ULONG Width, _In_ ULONG Height, _In_reads_bytes_(Delta *Height) PUCHAR Buffer, _In_ ULONG BitsPerPixel, _In_ ULONG Delta)
GLint GLint GLint GLint GLint x
GLint GLint GLint GLint GLint GLint y
GLdouble GLdouble GLdouble r
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
_Check_return_ int __cdecl rand(void)
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
BOOL Polygon(CONST PPOINT UnsafePoints, int Count, int polyFillMode)
BOOL WINAPI GdiTransparentBlt(HDC hdcDst, int xDst, int yDst, int wDst, int hDst, HDC hdcSrc, int xSrc, int ySrc, int wSrc, int hSrc, UINT crTransparent)
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG _In_ LONG x2
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG y1
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG x1
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG _In_ LONG _In_ LONG y2
HBRUSH WINAPI CreateBrushIndirect(_In_ const LOGBRUSH *plb)
BOOL WINAPI PolyBezier(_In_ HDC hdc, _In_reads_(cpt) const POINT *apt, _In_ DWORD cpt)
HGDIOBJ WINAPI GetStockObject(_In_ int)
BOOL WINAPI Polyline(_In_ HDC hdc, _In_reads_(cpt) const POINT *apt, _In_ int cpt)
HBITMAP WINAPI CreateBitmap(_In_ INT cx, _In_ INT cy, _In_ UINT cPlanes, _In_ UINT cBitsPerPel, _In_opt_ const VOID *pvBits)
BOOL WINAPI Ellipse(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int)
COLORREF WINAPI SetBkColor(_In_ HDC, _In_ COLORREF)
int WINAPI IntersectClipRect(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int)
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
BOOL WINAPI MoveToEx(_In_ HDC, _In_ int, _In_ int, _Out_opt_ LPPOINT)
BOOL WINAPI MaskBlt(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int, _In_ HDC, _In_ int, _In_ int, _In_ HBITMAP, _In_ int, _In_ int, _In_ DWORD)
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
BOOL WINAPI StretchBlt(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int, _In_opt_ HDC, _In_ int, _In_ int, _In_ int, _In_ int, _In_ DWORD)
BOOL WINAPI RestoreDC(_In_ HDC, _In_ int)
COLORREF WINAPI GetBkColor(_In_ HDC)
int WINAPI GetROP2(_In_ HDC)
int WINAPI FillRect(HDC, LPCRECT, HBRUSH)
BOOL WINAPI Rectangle(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int)
int WINAPI SetBkMode(_In_ HDC, _In_ int)
COLORREF WINAPI SetTextColor(_In_ HDC, _In_ COLORREF)
int WINAPI SetROP2(_In_ HDC, _In_ int)
BOOL WINAPI RoundRect(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int, _In_ int, _In_ int)
HBRUSH WINAPI CreateSolidBrush(_In_ COLORREF)
BOOL WINAPI DeleteDC(_In_ HDC)
HPEN WINAPI CreatePen(_In_ int, _In_ int, _In_ COLORREF)
BOOL WINAPI ExtFloodFill(_In_ HDC, _In_ int, _In_ int, _In_ COLORREF, _In_ UINT)
BOOL WINAPI LineTo(_In_ HDC, _In_ int, _In_ int)
int WINAPI SaveDC(_In_ HDC)
DWORD WINAPI GetSysColor(_In_ int)
BOOL WINAPI SetRect(_Out_ LPRECT, _In_ int, _In_ int, _In_ int, _In_ int)