Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
cSurfaceDC.cpp File Reference
#include "pch.h"
#include "Image/cSurfaceDC.h"
#include "Math/Calc.h"
#include "Windows/cWndGDI.h"
#include "GrayCore/include/cNewPtr.h"
#include "GrayCore/include/cMime.h"

Namespaces

 GrayLib
 

Macros

#define ThrowDrawInvalid()   throw 0
 
#define SURF_DRAWCOPY_LOOP(f)
 
#define SURF_DRAWBIT_LOOP(f)
 
#define SURF_DRAWSRF_LOOP(f)
 

Variables

const COLOR16_t GrayLib::COLOR16_Transparent = 0
 

Detailed Description

Surface image manipulation.

Macro Definition Documentation

◆ SURF_DRAWBIT_LOOP

#define SURF_DRAWBIT_LOOP (   f)
Value:
{ for ( PIXELS_t x = xstart; x < xend; x++ ) \
{ \
COLOR16_t color = pSrc[ (( v >> 16 ) * iWidth) + ( u >> 16 ) ]; \
color = f; \
pDst[x] = color; \
u += du; \
v += dv; \
}}
int PIXELS_t
Count of pixels in a dimension of some image/surface.
Definition: cSurfaceInfo.h:20

◆ SURF_DRAWCOPY_LOOP

#define SURF_DRAWCOPY_LOOP (   f)
Value:
{ while ( iWidth-- ) \
{ \
COLOR16_t color = *pSrc++; \
color = f; \
*pDst = color; \
pDst++; \
}}

◆ SURF_DRAWSRF_LOOP

#define SURF_DRAWSRF_LOOP (   f)
Value:
{ while ( iHeight-- ) \
{ \
int i=0;\
int iWidth2 = iWidth;\
for ( ; iWidth2--; i++ )\
{\
COLOR16_t color = pSrc[i];\
if ( color == COLOR16_Transparent ) continue;\
color = f; \
pDst[i] = color;\
}\
pSrc = (WORD*) rSurfSrc.GetNextLine( pSrc );\
pDst = (WORD*) this->m_SurfDest.GetNextLine( pDst );\
}}
const COLOR16_t COLOR16_Transparent
Definition: cSurfaceDC.cpp:18

◆ ThrowDrawInvalid

#define ThrowDrawInvalid ( )    throw 0