Classes |
struct | SGaussTable |
Public Member Functions |
| TMCPixelFX () |
virtual | ~TMCPixelFX () |
boolean | IsValid () |
void | ClipRect (const TMCRect *_clip) |
TMCRect | GetClipRect () |
void | SetChopProc (ChopProc proc) |
ChopProc | GetChopProc () |
void | SetTransparency (real32 amt) |
real32 | GetTransparency () |
void | SetTranslateTable (void *xlate) |
void * | GetTranslateTable () |
boolean | AdjustBlitRects (TMCRect *totalsrc, TMCRect *totaldst, TMCRect *srcRect, TMCRect *dstRect) |
boolean | BucketInvertRect (TMCPixelBucket *bucket, const TMCRect *rect, boolean colorblit, boolean alphablit) |
boolean | BucketFillAlphaRect (TMCPixelBucket *bucket, const TMCRect *rect, uint32 color) |
boolean | BucketFillColorRect (TMCPixelBucket *bucket, const TMCRect *rect, uint32 color) |
boolean | BucketFillRect (TMCPixelBucket *bucket, const TMCRect *rect, uint32 color) |
boolean | BucketScrollRect (TMCPixelBucket *bucket, const TMCRect *rectptr, int32 x, int32 y) |
boolean | BucketBlit (TMCPixelBucket *dst, const TMCRect *origDstRect, const TMCPixelBucket *src, const TMCRect *origSrcRect, boolean dither, boolean useSrcAlpha) |
boolean | BucketBlitDecompress (TMCPixelBucket &inDestBucket, const TMCRect &inDstRect, const TMCRLEPixels *inSrcPixels, const TMCRect &inSrcRect, uint32 inColor) |
boolean | BucketBlit32FromGray8 (TMCPixelBucket *dst, const TMCRect *dstrectptr, const TMCPixelBucket *src, const TMCRect *srcrectptr, uint32 color) |
boolean | BucketBlit32FromGray8WNoResample (TMCPixelBucket *dst, const TMCPoint *dstrecttopleftptr, const TMCPixelBucket *src, const TMCRect *srcrectptr, uint32 color) |
boolean | BucketBlitExtractAlpha8From32 (TMCPixelBucket *dst, const TMCRect *dstrectptr, const TMCPixelBucket *src, const TMCRect *srcrectptr) |
boolean | BucketBlitExtractAlpha8From32WNoResample (TMCPixelBucket *dst, const TMCPoint *dstrecttopleftptr, const TMCPixelBucket *src, const TMCRect *srcrectptr) |
boolean | BucketBlit8FromGray8 (TMCPixelBucket *dst, const TMCRect *dstrectptr, const TMCPixelBucket *src, const TMCRect *srcrectptr, uint32 color) |
boolean | AllocGaussTable (SGaussTable *gauss, real32 maxradius, int32 width, int32 height) |
boolean | ComputeGaussTable (SGaussTable *gauss, real32 radius, boolean horizontal, boolean vertical) |
void | DestroyGaussTable (SGaussTable *gauss) |
boolean | BucketGauss32 (TMCPixelBucket *bucket, const TMCRect *rectptr, real32 radius, SGaussTable *gauss) |
boolean | BucketGauss8 (TMCPixelBucket *bucket, const TMCRect *rectptr, real32 radius, SGaussTable *gauss) |
void | FlipBlitRect (TMCPixelBucket *bucket, TMCRect *rect) |
boolean | CompatiblePixelBuckets (const TMCPixelBucket *src, const TMCPixelBucket *dst) |
boolean | EqualBuckets (const TMCPixelBucket *src, const TMCPixelBucket *dst) |
boolean | BucketFillRectAlphaOrColor (TMCPixelBucket *bucket, const TMCRect *rect, uint32 color, boolean colorblit, boolean alphablt, real32 transparency, ChopProc chopproc) |
boolean | BucketBlitEqualRect32 (TMCPixelBucket *dst, const TMCRect *dstRect, const TMCPixelBucket *src, const TMCRect *srcRect, int32 alpha=256, boolean useSrcAlpha=false, ChopProc chopproc=(ChopProc) 0) |
boolean | BucketBlitNotEqualRect32 (TMCPixelBucket *dst, const TMCRect *dstRect, const TMCPixelBucket *src, const TMCRect *srcRect, int32 alpha=256, boolean useSrcAlpha=false, ChopProc chopproc=(ChopProc) 0) |
boolean | BucketBlitSampledRect32 (TMCPixelBucket *dst, const TMCRect *dstRect, const TMCPixelBucket *src, const TMCRect *srcRect, int32 alpha=256, boolean useSrcAlpha=false, ChopProc chopproc=(ChopProc) 0) |
boolean | BucketBlitResize32 (TMCPixelBucket *dst, const TMCRect &dstRect, const TMCPixelBucket *src, const TMCRect &srcRect) |
boolean | BucketBlitDown2x (TMCPixelBucket *dst, const TMCPixelBucket *src) |
void | DrawScanLineWithAlpha (const register uint32 *src, register uint32 *dst, uint32 dstw) |
void | DrawScanLineWithAlphaTransparent (const register uint32 *src, register uint32 *dst, uint32 dstw, int32 *alphaarray) |
void | LinearBlendScanLine (uint32 *dstptr, const uint32 *srcptr, const uint32 *srcrownext, int32 cursrcx, int32 srcw, int32 dstw, int32 errV, int32 hscale) |
void | LinearBlendScanLineWithAlpha (uint32 *dstptr, const uint32 *srcptr, const uint32 *srcrownext, int32 cursrcx, int32 srcw, int32 dstw, int32 errV, int32 hscale) |
boolean | BucketBlitEqualRect32VerticalGradient (TMCPixelBucket *dst, const TMCRect *dstRect, const TMCPixelBucket *src, const TMCRect *srcRect, uint32 alphaStart, const uint32 alphaEnd, const uint32 color=0x00000000) |
boolean | BucketBlitEqualRect32VerticalGradient (DoPixelFXData *data) |
boolean | BucketBlit32VerticalGradient (TMCPixelBucket *dst, const TMCRect *dstRect, uint32 alphaStart, const uint32 alphaEnd, const uint32 colorStart, const uint32 colorEnd) |
boolean | BucketBlit32VerticalGradient (DoPixelFXData *data) |
boolean | BucketBlit32HorizontalGradient (TMCPixelBucket *dst, const TMCRect *dstRect, uint32 alphaStart, const uint32 alphaEnd, const uint32 colorStart, const uint32 colorEnd) |
boolean | BucketBlit32HorizontalGradient (DoPixelFXData *data) |
boolean | DrawLine32 (TMCPixelBucket *dst, TMCPoint &pA, TMCPoint &pB, uint32 color=0x00000000, const TMCRect *clipRect=(TMCRect *) 0) |
boolean | DrawLine32Antialiased (TMCPixelBucket *dst, TMCPoint &pA, TMCPoint &pB, uint32 color=0x00000000, const TMCRect *clipRect=(TMCRect *) 0) |
boolean | DrawLine32AntialiasedAlphaChopProc (TMCPixelBucket *dst, TMCPoint &pA, TMCPoint &pB, uint32 color=0x00000000, const TMCRect *clipRect=(TMCRect *) 0, int32 alpha=0xff, ChopProc chopproc=(ChopProc) 0) |
boolean | DrawLine32 (DoPixelFXData *data) |
boolean | DrawLine32Antialiased (DoPixelFXData *data) |
Static Public Member Functions |
static void | FastBucketBlit (const TMCPixelBucket &dst, const TMCPixelBucket &src, const TMCRect &rect) |
static void | FastBucketBlit (const TMCPixelBucket &dst, const TMCRect &dstRect, const TMCPixelBucket &src, const TMCRect &srcRect) |
static void | FastBucketFill (const TMCPixelBucket &pixelBucket, uint32 color) |
static void | FullBucketBlit (const TMCPixelBucket &dst, const TMCPixelBucket &src) |
Protected Attributes |
TMCRect | fRectSrc |
TMCRect | fRectDst |
TMCRect | fRectClip |
ChopProc | fChopproc |
real32 | fTransparency |
void * | fXlateTable |
void MCCOMAPI TPreviewPart::SelfDraw(IMCGraphicContext* graphicContext, const TMCRect& inZone)
{
if (MCVerify(graphicContext != NULL && fOffscreen != NULL))
{
uint32 dstX = inZone.GetWidth ();
uint32 dstY = inZone.GetHeight();
if ( (dstX > 1) && (dstY > 1) )
{
TMCRect srcRect= fOffscreen->GetRect();
TMCRect dstRect;
TMCPoint offScreenSize( fOffscreen->GetWidth(), fOffscreen->GetHeight() );
dstRect.MaximizeInside(TMCRect(0, 0, fBounds.GetWidth(), fBounds.GetHeight()), offScreenSize);
TMCPixelFX pixelFX;
graphicContext->BlitBucket(fOffscreen->PixelBucket(), srcRect, dstRect, inZone, &pixelFX);
}
}
}